Configuring the tPigCode component

Pig

author
Talend Documentation Team
EnrichVersion
6.5
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Open Studio for Big Data
Talend Real-Time Big Data Platform
task
Data Governance > Third-party systems > Processing components (Integration) > Pig components
Data Quality and Preparation > 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 tPigCode component to open its Basic settings view.
  2. Click Sync columns to retrieve the schema structure from the preceding component.
  3. Fill in the Script Code field with following expression:
    tPigCode_1_row2_RESULT = foreach tPigLoad_1_row1_RESULT generate $0 as name;
    This filter expression selects column Name from CustomerList.