<?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 Re: Lookp sort order in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361686#M125986</link>
    <description>Hi Andrea,&lt;BR /&gt;File read order is based on the file sorting...&lt;BR /&gt;tMap data lookup order is as per the data flow...&amp;nbsp;&lt;BR /&gt;But if you want specific order, you can insert sort component. This will ensure that the data is being processed by tMap as per your expectations.&lt;BR /&gt;Vaibhav</description>
    <pubDate>Fri, 25 Jul 2014 11:42:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-07-25T11:42:35Z</dc:date>
    <item>
      <title>Lookp sort order</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361685#M125985</link>
      <description>Hi. 
&lt;BR /&gt;I have a lookup join between files, done with a tMap. The join type is 1 --&amp;gt;N , let's say for each row of the main stream we can get N rows in the lookup file. 
&lt;BR /&gt;Here' s lookup configuration and job design: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEbD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148081iAE70CBBE24B4B7EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEbD.png" alt="0683p000009MEbD.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MEca.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153717iA57482AEA5DD9E30/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MEca.png" alt="0683p000009MEca.png" /&gt;&lt;/span&gt;Is the stream file order preserved in the output file ? 
&lt;BR /&gt;Is it guaranteed that the output will be in this order 
&lt;BR /&gt;record 1 (stream) record A (lookup) 
&lt;BR /&gt;record 1 (stream) record B (lookup)&amp;nbsp; 
&lt;BR /&gt;record 2 (stream) record C (lookup)&amp;nbsp; 
&lt;BR /&gt;record 2 (stream) record D (lookup)&amp;nbsp;&amp;nbsp; 
&lt;BR /&gt;record 2 (stream) record E (lookup)&amp;nbsp;&amp;nbsp; 
&lt;BR /&gt;or in some cases we can get this second output order (unwanted) 
&lt;BR /&gt;record 1 (stream) record A (lookup) 
&lt;BR /&gt;record 2 (stream) record C (lookup)&amp;nbsp;&amp;nbsp; 
&lt;BR /&gt;record 1 (stream) record B (lookup)&amp;nbsp; 
&lt;BR /&gt;record 2 (stream) record D (lookup) &amp;nbsp; 
&lt;BR /&gt;record 2 (stream) record E (lookup)&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks. 
&lt;BR /&gt;Andrea&amp;nbsp;</description>
      <pubDate>Fri, 25 Jul 2014 11:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361685#M125985</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-25T11:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Lookp sort order</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361686#M125986</link>
      <description>Hi Andrea,&lt;BR /&gt;File read order is based on the file sorting...&lt;BR /&gt;tMap data lookup order is as per the data flow...&amp;nbsp;&lt;BR /&gt;But if you want specific order, you can insert sort component. This will ensure that the data is being processed by tMap as per your expectations.&lt;BR /&gt;Vaibhav</description>
      <pubDate>Fri, 25 Jul 2014 11:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361686#M125986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-25T11:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Lookp sort order</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361687#M125987</link>
      <description>Hi Vaibhav&lt;BR /&gt;I don't want to use sort component !&lt;BR /&gt;I need that input file order is preserved without further operations because the main stream input file is quite big (45000000 records).&lt;BR /&gt;So I need that the join output file is "naturally" ordered as the main stream as I wrote down:&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;record 1 (stream) record A (lookup)&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;record 1 (stream) record B (lookup)&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;record 2 (stream) record C (lookup)&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;record 2 (stream) record D (lookup)&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;record 2 (stream) record E (lookup)&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&lt;BR /&gt;....&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;record 45000000 (stream) record Z (lookup)&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;record 45000000 (stream) record F (lookup)&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Thanks.&lt;BR /&gt;A</description>
      <pubDate>Fri, 25 Jul 2014 12:25:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361687#M125987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-25T12:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Lookp sort order</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361688#M125988</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;tMap data lookup order is &lt;B&gt;as per the data flow&lt;/B&gt;...&amp;nbsp;&lt;BR /&gt;Vaibhav&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;I can't understand this sentence "as per the data flow" ...&lt;BR /&gt;do you mean that the order is preserved as desired ?&lt;BR /&gt;Andrea</description>
      <pubDate>Fri, 25 Jul 2014 12:41:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361688#M125988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-25T12:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lookp sort order</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361689#M125989</link>
      <description>Lookup concept is, tMap first would load all the records from the source into the memory from lookup connection. Once loaded it will take first record from main and will apply your join and deliver output records...and then go for second record... 
&lt;BR /&gt;As you have given all the matches i.e. 1--&amp;gt;n, then logically it should give the exact order of data in lookup and not otherwise... 
&lt;BR /&gt;In case of any discrepancy in the answer, someone from Talend / members may give correct answer. 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Vaibhav</description>
      <pubDate>Fri, 25 Jul 2014 12:46:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361689#M125989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-25T12:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: Lookp sort order</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361690#M125990</link>
      <description>Thanks Vaibhav.&amp;nbsp;It was my idea too&lt;BR /&gt;&amp;nbsp;.... I'm waiting also an "official" answer from Talend Team.&lt;BR /&gt;Andrea</description>
      <pubDate>Fri, 25 Jul 2014 14:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361690#M125990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-25T14:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lookp sort order</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361691#M125991</link>
      <description>Hi, 
&lt;BR /&gt;All the lookup data is loaded before(into memory or disk), and then&amp;nbsp;each record in main will match all records in the lookup row by row.
&lt;BR /&gt;Let us know if it is clear for your.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Mon, 28 Jul 2014 10:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361691#M125991</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-28T10:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Lookp sort order</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361692#M125992</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi, &lt;BR /&gt;All the lookup data is loaded before(into memory or disk), and then&amp;nbsp;each record in main will match all records in the lookup row by row.&lt;BR /&gt;Let us know if it is clear for your.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Thanks Sabrina.
&lt;BR /&gt;I understood what it's written, but my question is if the match order described&amp;nbsp;is&amp;nbsp;also the write order , or in some (
&lt;FONT color="#000000"&gt;&lt;FONT face="arial, sans-serif"&gt;unlikely) cases this order is not preserved in the output ?&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#000000"&gt;&lt;FONT face="arial, sans-serif"&gt;Sorry if I'm pedant but I've to decide if sort &lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#000000"&gt;&lt;FONT face="arial, sans-serif"&gt;or not &amp;nbsp;GBs of critical data and I'd like to decide on a software architectual base and not on&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#000000"&gt;&lt;FONT face="arial, sans-serif"&gt;data/user experience even if very good (many many&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#000000"&gt;&lt;FONT face="arial, sans-serif"&gt;thanks to &amp;nbsp;sanvaibhav)&lt;/FONT&gt;&lt;/FONT&gt;
&lt;FONT color="#000000"&gt;&lt;FONT face="arial, sans-serif"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="#000000"&gt;&lt;FONT face="arial, sans-serif"&gt;Thanks a lot.&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT color="#000000"&gt;&lt;FONT face="arial, sans-serif"&gt;Andrea&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 29 Jul 2014 15:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookp-sort-order/m-p/2361692#M125992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-07-29T15:48:08Z</dc:date>
    </item>
  </channel>
</rss>

