Loading navigation...
Unify Integrations
Logo
Duplicate Field Transformation

Duplicate Field Transformation

Logo

3 mins READ

Overview

The Duplicate Field transformation creates an exact replica of an existing field as a new transient field with the same value. This powerful yet simple transformation serves as a foundation for complex data mapping and manipulation strategies without affecting your original data.

Image
Image

Key Benefits

  • Enable Multiple Mappings: Map the same data to multiple destination fields while preserving the original source

  • Preserve Original Data: Maintain an unmodified copy while performing transformations on the duplicate

  • Facilitate Validation: Keep original values for comparison and verification against transformed data

How to Apply a Duplicate Field Transformation?

  1. Navigate to the transformation panel in your data pipeline

  2. Select "Duplicate Field" from the available transformations

  3. Specify a clear, descriptive name for the new transient field

  4. Click "Save" to apply the transformation.

    Image
    Image

Implementation Example

Original Field: customer_email
Duplicate Field: customer_contact_email

This creates a new field customer_contact_email that contains the same values as customer_email, allowing you to use the email for multiple purposes in your workflow.

Best Practices

  • Use Descriptive Naming: Choose names that clearly indicate the duplicate field's purpose (e.g., original_field_for_validation)

  • Document Data Lineage: Maintain records of duplicated fields to easily trace data flow

  • Consider Performance: While duplicating fields has minimal performance impact, extensive duplication may affect memory usage in large datasets

  • Audit Field Usage: Regularly review duplicate fields to ensure they remain necessary to your data pipeline.

FAQs

Will changes to the original field affect the duplicate field?

No, the duplicate field is completely independent. Changes to either the original or duplicate will not affect the other.

Can I duplicate a field multiple times?

No, you can only create a single duplicate of the same field, if you want multiple duplicates of the same field you can create a duplicate of the duplicate field.

Can I duplicate computed or transformed fields?

Yes, you can duplicate any field, including those that have undergone previous transformations.

Why is creating a new field mandatory for this transformation?

Creating a new field is essential because the Duplicate Field transformation enables the same data to be mapped or used multiple times in different ways. The new field preserves the original data while providing flexibility to use the duplicate independently.

Can I apply transformations on a field after applying the duplicate transformation?

No, you cannot apply additional transformations on a field after applying the duplicate field transformation but you can apply transformations on the resulting duplicate field.