Transformations > Hierarchy Builder transformation > Join and map fields for data conversion
  

Join and map fields for data conversion

To define the conversion of data from upstream transformations to the hierarchical output, join the incoming data and then map the relationships between fields.
If more than one upstream transformation is connected to the Hierarchy Builder transformation, set primary and foreign keys to join the incoming data before you map the fields. If only one upstream transformation is connected to the Hierarchy Builder transformation, the data will be treated as denormalized input, and you don't define primary and foreign keys. Then, map the input fields to the matching field in the hierarchy.
The Field Mapping tab displays the relational fields from the upstream transformations and the hierarchy fields from the schema. Use this tab to join incoming sources and map the relationships between fields. The following image shows the Field Mapping tab:
In the Properties panel, the Field Mapping tab shows the relational inputs fields on one side and hierarchy fields on the other. 6 of 7 relational fields are mapped and there is a primary key and foreign key designated in the relational fields.

Joining incoming data

If more than one upstream transformation is connected to the Hierarchy Builder transformation, set primary and foreign keys to join the incoming data.
You can perform the following actions to set and remove keys:
Note: You can set only bigint and string fields as keys.

Mapping relational fields to hierarchy fields

Map relational input fields to hierarchy elements to define how the transformation converts the data.
You can perform the following actions to map and unmap fields: