Scenario 1: Deduplicating entries - 6.3

Talend Components Reference Guide

Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for Data Quality
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
Data Governance
Data Quality and Preparation
Design and Development
Talend Studio

In this five-component Job, we will sort entries on an input name list, find out duplicated names, and display the unique names and the duplicated names on the Run console.

Setting up the Job

  1. Drop a tFileInputDelimited, a tSortRow, a tUniqRow, and two tLogRow components from the Palette to the design workspace, and name the components as shown above.

  2. Connect the tFileInputDelimited component, the tSortRow component, and the tUniqRow component using Row > Main connections.

  3. Connect the tUniqRow component and the first tLogRow component using a Main > Uniques connection.

  4. Connect the tUniqRow component and the second tLogRow component using a Main > Duplicates connection.

Configuring the components

  1. Double-click the tFileInputDelimited component to display its Basic settings view.

  2. Click the [...] button next to the File Name field to browse to your input file.

  3. Define the header and footer rows. In this use case, the first row of the input file is the header row.

  4. Click Edit schema to define the schema for this component. In this use case, the input file has five columns: Id, FirstName, LastName, Age, and City. Then click OK to propagate the schema and close the schema editor.

  5. Double-click the tSortRow component to display its Basic settings view.

  6. To rearrange the entries in the alphabetic order of the names, add two rows in the Criteria table by clicking the plus button, select the FirstName and LastName columns under Schema column, select alpha as the sorting type, and select the sorting order.

  7. Double-click the tUniqRow component to display its Basic settings view.

  8. In the Unique key area, select the columns on which you want deduplication to be carried out. In this use case, you will sort out duplicated names.

  9. In the Basic settings view of each of the tLogRow components, select the Table option to view the Job execution result in table mode.

Saving and executing the Job

  1. Press Ctrl+S to save your Job.

  2. Run the Job by pressing F6 or clicking the Run button on the Run tab.

    The unique names and duplicated names are displayed in different tables on the Run console.