Using survivorship functions to merge two records and create a master record
This scenario describes a basic Job that uses the T-Swoosh algorithm to find duplicates in customer names. It compares values in the first_name column using matching and survivorship methods, groups similar records together and creates single representations of entities in each group by merging two similar records according to a survivorship rule.
These master records are new records that do not exist in the input data.
You can use several matching passes with the T-Swoosh algorithm in a Job. Each pass provides the survived masters for each group and the original records to the second pass. However, intermediate master records are removed from the output flow. Only final master and original records are kept at the end.
This scenario applies only to Talend Data Management Platform, Talend Big Data Platform, Talend Real-Time Big Data Platform, Talend MDM Platform, Talend Data Services Platform, Talend MDM Platform and Talend Data Fabric.
About this task
In this Job:
- The tFileInputDelimited component provides the customer records to be processed.
-
The tMatchGroup component processes data using matching and survivorship methods.
- The tLogRow component presents the matching
and survivorship results.
Setting up the Job
About this task
In this scenario, the main input schema is already stored in the Repository. For more information about storing schema metadata in the Repository, see Managing metadata in Talend Studio.
Procedure
Configuring the input component
About this task
The main input file contains the columns: id, first_name and age. The data in this input file has problems such as duplication, names spelled differently or wrongly, different information for the same customer.