Transformations > Union transformation > Comparison to Joiner transformation
  

Comparison to Joiner transformation

A Union transformation can merge data from multiple sources but does not combine data based on a join condition like a Joiner transformation.
The following table identifies some key differences between the Union transformation and Joiner transformation, which also merges data from multiple sources. Factor these differences into your mapping design:
Requirement
Union transformation
Joiner transformation
Combine records based on a join condition
No. The Union Transformation is equivalent to a UNION ALL statement in SQL, which combines data vertically from multiple sources.
Yes. The Joiner transformation supports Normal, Right Outer, Left Outer, and Full Outer JOINs.
Include multiple input groups
Yes. You can define multiple input groups and one output group.
Yes. You can define two input groups, Master and Detail.
Include heterogeneous sources
Yes
Yes
Merge different data types
All of the source columns must have similar data types. The number of columns in each source must be the same.
At least one column in the sources to be joined must have the same data type.
Generate transactions
No
Yes