Monday, 20 May 2013

talend generate sample data using tRowGenerator



How to generate sample data in Talend using tRowGenerator

Solution -
Talend provides tRowGenerator component to help us in generating sample data in our job.

Step-1 - drag and drop tRowGenerator component in your job.
Step-2 - double click on tRowGenerator - to go to its schema definition.
Step -3 - As per your requirement enter column names, data types and you have option to either use y our own custom logic to get data in these columns or use some supplied functions - in the screenshot below i have used some supplied functions like random string and numeric sequence generator.
Number of rows for RowGenerator tells talend how many rows we want to generate.

talend tRowGenerator Schema
You can add tLogrow or other component to utilize this generated data further in your jobs.