Replicate a row many times on the basis of the value of a column in the row

Highlighted
Five Stars

Replicate a row many times on the basis of the value of a column in the row

Dear all, i need a way to replicate the rows of a table many times on the basis of the value of a column in the same rows.

To make an example:

 

row1 : aaa     bbb   ccc   10

row2: abc      def    ghi     5

 

i want to replicate the row1 10 times and the row2  5 times.

 

the result will be:

 

aaa     bbb   ccc   10

aaa     bbb   ccc   10

aaa     bbb   ccc   10

aaa     bbb   ccc   10

aaa     bbb   ccc   10

....

abc      def    ghi     5

abc      def    ghi     5

abc      def    ghi     5

abc      def    ghi     5

...

 

is there a way to solve that issue?

Moderator

Re: Replicate a row many times on the basis of the value of a column in the row

Hello,

Please have a look at tRowGenerator component. It can generate as many rows and fields as are required using random values taken from a list.

For more information, please have a look at this component reference about:TalendHelpCenter:tRowGenerator.

Best regards

Sabrina

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog