Merging the input flows - 6.5

Talend Job Script 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 Real-Time Big Data Platform
Talend CommandLine
Talend Studio
Design and Development > Designing Jobs

Use the procedure below to add and configure a tUnite component that will be used to merge the input flows.


  1. Next the tFileInputDelimited components, add a new addComponent {} function and its sub-functions setComponentDefinition {} and setSettings {} to add and label the tUnite component.
    addComponent {
    	setComponentDefinition {
    		TYPE: "tUnite",
    		NAME: "tUnite_1",
    		POSITION: 384, 192
    	setSettings {
    		LABEL : "merge"		
  2. Next to the setSettings {} function, enter the addSchema {} function to define the schema of the tUnite component, which must be the same as the input flows.
    	addSchema {
    		NAME: "tUnite_1",
    		addColumn {
    			NAME: "subject",
    			TYPE: "id_String"
    		addColumn {
    			NAME: "score",
    			TYPE: "id_Double",
    			PRECISION: 2