O'Reilly logo

Talend Open Studio Cookbook by Rick Barton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating complex test data using tRowGenerator, tFlowToIterate, tMap, and sequences

This recipe shows how a more complex set of test data can be created. In this example, we will build a set of CSV data ready to be loaded into a database which has the following structure:

  • Customer has 1 or more orders
  • Order has 1 or more order items

Getting ready

  1. Open the jo_cook_ch10_0110_complexTestData job.
  2. You will see a section of code that has been deactivated. Do not activate this code until later in the exercise.
  3. Run the job, and you will see that the customer file is created.

How to do it...

The steps for creating complex test data using tRowGenerator, tFlowTolterate, tMap, and sequences are as follows:

  1. Activate components tFixedFlowInput_2, tMap_2, and tFileOutputDelimited_2 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required