Skip to main content

Overview

Multi-field mapping allows you to combine or transform data from multiple source fields into a single entity field. Entegrata provides powerful operators that handle common data combination scenarios without requiring code. This guide covers all multi-field operators and how to use them effectively in your data pipelines.

Available Operators

Operator Overview

OperatorPurposeExample Use Case
COALESCEUse first non-null valueFallback from preferred to alternative fields
CONCATCombine text valuesBuild full names, addresses, or composite keys
CASEConditional logicTransform values, categorize data, apply business rules
HASHGenerate multi-field hashesGenerate uniquely random text strings by combining data from multiple fields
HIGHEST VALUEUse Highest ValueTake the input whose value is the highest
LOWEST VALUEUse Lowest ValueTake the input whose value is the lowest
Operator selection menu

COALESCE Operator

What is COALESCE?

COALESCE returns the first non-null value from a list of fields. It’s perfect for providing fallback values when preferred data might be missing. Syntax: COALESCE(field1, field2, field3, ..., defaultValue)

Common Use Cases

Email Address Fallback:
COALESCE(work_email, personal_email, "no-email@example.com")
Phone Number Fallback:
COALESCE(mobile_phone, home_phone, work_phone)
Name Fallback:
COALESCE(preferred_name, first_name, username)

Creating a COALESCE Transformation

1

Connect Multiple Input Fields

Drag a second connection from source fields to the target entity field. This automatically creates a logic node for combining the inputs, defaulting to a COALESCE operation.
2

Verify Coalesce Order

The order matters - COALESCE checks fields left to right. You can view and change the order of the inputs in the COALESCE operation by dragging the fields listed in the coalesce properties panel.
View and re-order source fields
3

Set Default Value (Optional)

In the COALESCE properties panel, enter a default value to use if all input fields are null.

COALESCE Best Practices

Ordering Inputs
  • Put most reliable/preferred fields first
  • Put default or fallback fields last
  • Consider data quality when ordering
If all fields are null and no default is provided, the entity field will be null. For required fields, always provide a default value.

CONCAT Operator

What is CONCAT?

CONCAT combines multiple text values into a single string. You can add separators, prefixes, and suffixes. Syntax: CONCAT(field1, separator, field2, separator, field3, ...)

Common Use Cases

Full Name:
CONCAT(first_name, ' ', last_name)
Result: "John Smith"
Full Address:
CONCAT(street, ', ', city, ', ', state, ' ', zip_code)
Result: "123 Main St, Springfield, IL 62701"
Composite Key:
CONCAT(customer_id, '-', order_id)
Result: "CUST001-ORD12345"
Email Construction:
CONCAT(username, '@', domain)
Result: "john.smith@company.com"

Creating a CONCAT Transformation

1

Connect Multiple Input Fields

Drag a second connection from source fields to the target entity field. This automatically creates a logic node for combining the inputs, defaulting to a COALESCE operation.
2

Select Concat Combination Option

Select the CONCAT option in the field combination options drop-down.
Select the CONCAT option in the dropdown
3

Verify Concat Order

The order matters - CONCAT appends fields left to right. You can view and change the order of the inputs in the CONCAT operation by dragging the fields listed in the CONCAT properties panel.
View and re-order source fields
4

Configure Separators

In the CONCAT properties panel:
  • Separator: Text to insert between each field (e.g., ” ”, ”, ”, ”-“)

CASE Operator

What is CASE?

CASE provides if-then-else conditional logic. Transform values, categorize data, or apply complex business rules based on conditions. Syntax:
CASE
  WHEN condition1 THEN result1
  WHEN condition2 THEN result2
  ELSE default_result
END

Common Use Cases

Status Categorization:
CASE
  WHEN status = 'A' THEN 'Active'
  WHEN status = 'I' THEN 'Inactive'
  WHEN status = 'P' THEN 'Pending'
  ELSE 'Unknown'
END
Value Ranges:
CASE
  WHEN revenue >= 1000000 THEN 'Enterprise'
  WHEN revenue >= 100000 THEN 'Mid-Market'
  WHEN revenue >= 10000 THEN 'SMB'
  ELSE 'Small Business'
END
Boolean Conversion:
CASE
  WHEN active_flag = 'Y' THEN true
  WHEN active_flag = 'N' THEN false
  ELSE null
END
Multiple Conditions:
CASE
  WHEN country = 'US' AND state = 'CA' THEN 'California'
  WHEN country = 'US' AND state = 'TX' THEN 'Texas'
  WHEN country = 'CA' THEN 'Canada'
  ELSE 'Other'
END

Creating a CASE Transformation

1

Connect Multiple Input Fields

Drag a second connection from source fields to the target entity field. This automatically creates a logic node for combining the inputs, defaulting to a COALESCE operation.
2

Select CASE Combination Option

Select the CASE option in the field combination options drop-down.
Select the CASE option in the dropdown
3

Build First Condition

In the CASE properties panel, click Add Condition:
  • Field: Select which field to evaluate
  • Operator: Choose comparison (equals, not equals, greater than, less than, contains, etc.)
  • Value: Enter the comparison value
  • Result: What value to return if true
First CASE condition configuration
4

Add More Conditions

Click Add Condition to add additional WHEN clauses. Conditions are evaluated in order from top to bottom.
5

Set ELSE Default

At the bottom, set the ELSE value - returned when no conditions match.
Always provide an ELSE value, especially for required fields. Without it, unmatched records will be null.

Available Operators in CASE

OperatorDescriptionExample
= (equals)Exact matchstatus = ‘Active’
(not equals)Not equal tocountry ≠ ‘US’
> (greater than)Numeric/date comparisonrevenue > 100000
< (less than)Numeric/date comparisonage < 18
(greater or equal)Inclusive comparisonscore >= 90
(less or equal)Inclusive comparisonquantity <= 10
CONTAINSString contains substringname CONTAINS ‘Corp’
STARTS WITHString starts withemail STARTS WITH ‘admin’
ENDS WITHString ends withfilename ENDS WITH ‘.pdf’
INValue in liststate IN (‘CA’, ‘NY’, ‘TX’)
IS NULLField is nullmiddle_name IS NULL
IS NOT NULLField has valuephone IS NOT NULL

CASE Best Practices

Condition Ordering
  • Put most specific conditions first
  • More general conditions go later
  • Always include an ELSE clause

Troubleshooting

COALESCE Returns Unexpected Nulls

Issue: COALESCE still returns null even with multiple input fields. Solutions:
  • Verify input field order
  • Check that at least one input has non-null values in sample data
  • Add a literal default value as last input
  • Preview each input field separately to verify data

CONCAT Produces Extra Separators

Issue: Concatenated string has separators where fields were null. Solutions:
  • Enable “Skip nulls” option in CONCAT settings
  • Use COALESCE on inputs to convert nulls to empty strings
  • Consider using CASE to handle null scenarios differently

CASE Always Returns ELSE Value

Issue: No conditions seem to match. Solutions:
  • Verify field data types match comparison values
  • Check for whitespace in string comparisons
  • Use case-insensitive operators for text
  • Preview source data to see actual values
  • Check operator choice (= vs CONTAINS vs STARTS WITH)