Multiply/Duplicate row by given multiplier

One Star

Multiply/Duplicate row by given multiplier

Hi,
is it possible to multiply/duplicate a row. It should be based on a given multiplier column (in the pic column "available_copies") without using a scripting component.
Seven Stars

Re: Multiply/Duplicate row by given multiplier

Input --> tFlowToIterate -iterate-> tLoop -iterate-> tFixedFlowInput --> output.
Use the available_copies value as the To variable in tLoop.
One Star

Re: Multiply/Duplicate row by given multiplier

Input --> tFlowToIterate -iterate-> tLoop -iterate-> tFixedFlowInput --> output.
Use the available_copies value as the To variable in tLoop.

Hey,
is it possible that you explain it in more detail? What settings do i have to do in the components?
in tflowToIterate i used the available_copies as key_value
in tLoop i used the variable from tflowToIterate for my to value ((Integer)globalMap.get("avail_copies"))
but i don't know what i have to setup in tfixedFlowInput (makes no sense to me)
Seven Stars

Re: Multiply/Duplicate row by given multiplier

tFixedFlowInput is used to make the output row, getting values from the input row that have been stored in the globalMap by tFlowToIterate.

What’s New for Talend Spring ’19

Watch the recorded webinar!

Watch Now

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.

Download

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads