Available in...
Open Studio for Big Data
Open Studio for Data Integration
Open Studio for ESB
About this task
You can set default values in the schema of certain components to replace null values retrieved from the data source.
Note:
At present, only tFileInputDelimited, tFileInputExcel, and tFixedFlowInput support default values in the schema.
In the following example, the company and city fields of some records of the source CSV file are left blank, as shown below. The input component reads data from the source file and completes the missing information using the default values set in the schema, Talend and Paris respectively.
id;firstName;lastName;company;city;phone
1;Michael;Jackson;IBM;Roma;2323
2;Elisa;Black;Microsoft;London;4499
3;Michael;Dujardin;;;8872
4;Marie;Dolvina;;;6655
5;Jean;Perfide;;;3344
6;Emilie;Taldor;Oracle;Madrid;2266
7;Anne-Laure;Paldufier;Apple;;4422
To set default values: