Skip to content
Back to Docs

Field Mapping & Transforms

Map source fields to destination fields and apply transformations.

How Field Mapping Works

When you add a destination to a pipeline, SnowPipe presents a visual field mapper. Source fields appear on the left, grouped by their origin (e.g., Shopify Products, Shopify Variants). Destination fields appear on the right, with required fields marked.

Connect a source field to a destination field to create a mapping. Each destination field can receive data from one source field. You can also apply transforms to modify the data in transit.

Auto-mapping

SnowPipe can automatically match source fields to destination fields by name. Click Auto-map to map all matching fields at once. You can then adjust individual mappings as needed.

Source field grouping

Fields are grouped by provenance. For example, a Shopify source with variant expansion shows separate groups for Product fields, Variant fields, and Inventory fields. This helps you identify where each field comes from.

Required fields

Destination fields marked as required must have a mapping before the pipeline can run. These are indicated with a red asterisk in the field mapper.

Transforms Reference

Transforms modify field values as data flows from source to destination. You can chain multiple transforms on a single field mapping.

Text

TransformDescription
uppercaseConvert text to UPPER CASE
lowercaseConvert text to lower case
titleCaseCapitalize the first letter of each word
trimRemove leading and trailing whitespace
stripHtmlRemove HTML tags from text
truncate(length, suffix)Truncate text to a maximum length
slugifyConvert text to URL-safe slug
replace(pattern, replacement)Replace text matching a pattern
format(template)Format using a template string

Numeric

TransformDescription
round(decimals)Round number to specified decimal places
multiply(factor)Multiply by a factor
toCentsConvert dollars to cents (multiply by 100, round)
toMicrosConvert to micros (multiply by 1,000,000)
toNumberParse text as a number

Conversion

TransformDescription
toStringConvert any value to a string
toBooleanConvert to true/false

Logic

TransformDescription
lookup(mapping, default)Map values using a lookup table
defaultIfEmpty(value)Use a fallback value when the field is empty

Filters

Filters let you exclude rows before they reach the destination. For example, you can filter out products with a specific status or only export rows where inventory is above zero.

Configuring Filters

In the pipeline's Transforms tab, add filter conditions. Each condition specifies a field, an operator (equals, not equals, contains, greater than, etc.), and a value. Rows that don't match the filter conditions are excluded from the export.

Multiple conditions can be combined with AND logic — all conditions must match for a row to be included.

Schema Change Detection

SnowPipe automatically detects when your source schema changes — new fields added, fields removed, or field types changed. When a change is detected:

  1. The pipeline's Schema tab shows the changes with timestamps.
  2. New fields are available for mapping in the field mapper.
  3. Removed fields that were mapped show a warning — you should update the mapping to avoid export errors.
  4. Type changes are flagged so you can verify transforms still work correctly.

Need help?

Reach out at support@snowforge.dev