<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to create multiple rows out from a row input in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-multiple-rows-out-from-a-row-input/m-p/2196133#M416</link>
    <description>Hi,&lt;BR /&gt;  I have found a way to create multiple rows - something I was unable to do as simply as shown below -, but I do not like this "hack" that much. I hope someone will share a better way to do it. &lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;Explanation&lt;/B&gt;&lt;BR /&gt;  The trick is to send the output from one componen to a LogRow in order to have the ouput flow defined and then send the iterate connection to a tJavaFlex that will do the actual replication&lt;BR /&gt;&lt;BR /&gt;Good Luck !&lt;BR /&gt;Alberto</description>
    <pubDate>Sat, 16 Nov 2024 13:20:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:20:14Z</dc:date>
    <item>
      <title>How to create multiple rows out from a row input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-multiple-rows-out-from-a-row-input/m-p/2196133#M416</link>
      <description>Hi,&lt;BR /&gt;  I have found a way to create multiple rows - something I was unable to do as simply as shown below -, but I do not like this "hack" that much. I hope someone will share a better way to do it. &lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;Explanation&lt;/B&gt;&lt;BR /&gt;  The trick is to send the output from one componen to a LogRow in order to have the ouput flow defined and then send the iterate connection to a tJavaFlex that will do the actual replication&lt;BR /&gt;&lt;BR /&gt;Good Luck !&lt;BR /&gt;Alberto</description>
      <pubDate>Sat, 16 Nov 2024 13:20:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-multiple-rows-out-from-a-row-input/m-p/2196133#M416</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple rows out from a row input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-multiple-rows-out-from-a-row-input/m-p/2196134#M417</link>
      <description>How about this?</description>
      <pubDate>Tue, 27 Jul 2010 02:08:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-multiple-rows-out-from-a-row-input/m-p/2196134#M417</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-07-27T02:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple rows out from a row input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-multiple-rows-out-from-a-row-input/m-p/2196135#M418</link>
      <description>Thanks for your example. You do not show the setup for tLoop_4 but it seems that you have a For Loop from 1 to 10. 
&lt;BR /&gt;If I understand correctly, we create a Lookup table of 10 records with a field - named iteration - that has a value equal to its record number. Then we create the Cartesian product of the Lookup against the input data and filter out the records which have a RowCount field larger than iteration. 
&lt;BR /&gt;It is very interesting, I have problems understanding the iteration components so your example helps on my understanding. The thing I do not like is that I have certain rows that have to be duplicated once or twice while others have to be duplicated over a thousand times. Thus, I would have to create a loop of a 1,000 for each input row. It might be a bit slow. 
&lt;BR /&gt;Thanks for teaching me how ot use the Iteration components. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;Alberto</description>
      <pubDate>Tue, 27 Jul 2010 07:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-multiple-rows-out-from-a-row-input/m-p/2196135#M418</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-27T07:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple rows out from a row input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-multiple-rows-out-from-a-row-input/m-p/2196136#M419</link>
      <description>Yes, my example is a loop from 1 to 10. 
&lt;BR /&gt;I'm not sure how tMap actually works behind the scenes but I don't think that this approach will create a Cartesian product and then filter. It's intelligent enough to apply the filter as a join condition. (It would be different if the filter were performed after the tMap.) 
&lt;BR /&gt;You also should be aware that the lookup flow is created (including the iteration) once only before any incoming rows (even if there is an iteration on the main flow). 
&lt;BR /&gt;Experimenting with 30,000 input rows being duplicated 900 or more times each (for a total of 28.5 million output rows) and a lookup flow of 10,000 rows, the job ran to a file in 35 seconds.</description>
      <pubDate>Tue, 27 Jul 2010 07:43:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-multiple-rows-out-from-a-row-input/m-p/2196136#M419</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-07-27T07:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple rows out from a row input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-create-multiple-rows-out-from-a-row-input/m-p/2196137#M420</link>
      <description>Hi Alevy,
&lt;BR /&gt; Thanks again for your help. I will give it a try. If I find anything interesting I will let you know.
&lt;BR /&gt;Thanks again !</description>
      <pubDate>Tue, 27 Jul 2010 17:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-create-multiple-rows-out-from-a-row-input/m-p/2196137#M420</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-07-27T17:56:07Z</dc:date>
    </item>
  </channel>
</rss>

