Loading the reference file and setting up an inner join

Pig

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
Talend Real-Time Big Data Platform
Talend Open Studio for Big Data
Talend Big Data
Talend Data Fabric
Talend Big Data Platform
task
Data Quality and Preparation > Third-party systems > Processing components (Integration) > Pig components
Data Governance > Third-party systems > Processing components (Integration) > Pig components
Design and Development > Third-party systems > Processing components (Integration) > Pig components
EnrichPlatform
Talend Studio

Procedure

  1. Double-click tPigJoin to open its Basic settings view.
  2. Click the [...] for the main schema to open the [Schema] dialog box.
  3. Check that input schema is correctly retrieved from the preceding component. If needed, click the [->>] button to copy all the columns of the input schema to the output schema.
  4. Click the [+] button under the output panel to add new columns according to the data structure of the reference file, groupId_ref (integer) and groupName (string) in this example. Then click OK to close the dialog box.
  5. Click the [...] for the schema lookup flow to open the [Schema] dialog box.
  6. Click the [+] button under the output panel to add two columns: groupId_ref (integer) and groupName (string), and then click OK to close the dialog box.
  7. In the Filename field, specify the full path to the reference file.
  8. Click the [+] button under the Join key table to add a new line, and select groupId and groupId_ref respectively from the Input and Lookup lists to match data from the main input flow with data from the lookup flow based on the group ID.
  9. From the Join Mode list, select inner-join.