<?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: Understanding tMap or tJava components behavior in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Understanding-tMap-or-tJava-components-behavior/m-p/2324406#M94115</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to thank you and accept your answer as you mentioned about separator "&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;you are using tab as the line separator. But most probably you must not have changed the default line separator semicolon to Tab in both or one of the input files"&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;The problem was about caching old separator even after changing that to another. When I used Java debug mode it was solved. I mentioned this issue here:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D73p000004kaePCAQ" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Old-changes-Caches-after-new-changes/m-p/165961/a&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2019 02:58:30 GMT</pubDate>
    <dc:creator>DM_J</dc:creator>
    <dc:date>2019-07-10T02:58:30Z</dc:date>
    <item>
      <title>Understanding tMap or tJava components behavior</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Understanding-tMap-or-tJava-components-behavior/m-p/2324402#M94111</link>
      <description>&lt;P&gt;suppose I have two CSV files: language.csv and l&lt;STRONG&gt;anguagecheck.csv&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="csvs.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6DE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133968iE252C16D11AEB9C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6DE.png" alt="0683p000009M6DE.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;note there is not any direct relation between them.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;and I have two jobs, I have two questions for job1 and one question for job2&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Job1:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6DO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133514i7319AA4B7D264737/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6DO.png" alt="0683p000009M6DO.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;tMap:&amp;nbsp; it is a cartesian join with the result of 9 rows.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6DT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145033iD90264245FE87445/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6DT.png" alt="0683p000009M6DT.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I wrote a println inside the tJavarow:&lt;/P&gt; 
&lt;P&gt;System.out.println(input_row.lookup_id);&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;the result should be: 11 and 12 and 13&lt;/P&gt; 
&lt;P&gt;but it is:&lt;/P&gt; 
&lt;P&gt;1 testtest aa&lt;BR /&gt;12 rest bb&lt;BR /&gt;13 quest cc&lt;BR /&gt;11 testtest aa&lt;BR /&gt;12 rest bb&lt;BR /&gt;13 quest cc ...&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6Dd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131337i8D0C15C335060D65/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6Dd.png" alt="0683p000009M6Dd.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Question 1: Why this happens and how I can solve it?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Question 2: If I open the result I see again something strange, why?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6Dn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156541i17038E6C5CA68218/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6Dn.png" alt="0683p000009M6Dn.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Job2: in this job, I compare the value of the column Name of&amp;nbsp;languagecheck.csv with the column Name of language.csv&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6Ds.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142775i9384C5C7A3C31568/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6Ds.png" alt="0683p000009M6Ds.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;tMap:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="7.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6Dx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155130i06D5BD4F31F51695/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6Dx.png" alt="0683p000009M6Dx.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The result should be two columns id and count, the value of count should be 0 but the result is:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8.png" style="width: 640px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6E2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138299i3647769E26D097CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6E2.png" alt="0683p000009M6E2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Question 3: these two extra columns came from where and why the value of count is 1?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The result should be&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;id&amp;nbsp; &amp;nbsp; count&lt;/P&gt; 
&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt; 
&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 ....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Note: I don't want to create a join between two CSVs inside tMap.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 02:50:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Understanding-tMap-or-tJava-components-behavior/m-p/2324402#M94111</guid>
      <dc:creator>DM_J</dc:creator>
      <dc:date>2019-07-09T02:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding tMap or tJava components behavior</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Understanding-tMap-or-tJava-components-behavior/m-p/2324403#M94112</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; For the first Question, you are using tab as the line separator. But most probably you must not have changed the default line separator semicolon to Tab in both or one of the input files. I got the right results.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 861px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6E7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150832iE6ABE94268D2A5E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6E7.png" alt="0683p000009M6E7.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Coming to your second query, you will have to again check the column separator symbol as first task. Now, I am joining the two datasets using name column.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I got zero match as shown below.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 763px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5vQ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136748i5AB783F5E5068FE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5vQ.png" alt="0683p000009M5vQ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="image.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6EH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137785iCF162D4DE0B8AD0A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6EH.png" alt="0683p000009M6EH.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am wondering why you are not doing the join within tMap. The problem with your current match method is that you are doing a Cartesian join and then trying to do java functions to perform the same task. Due to Cartesian set, the results to process will become bigger especially for bigger datasets. Which means your current program may suffer throughput issues in future. Also I personally do not like to do hand coding when the same functionalities are provided by ETL tools &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Why to reinvent the same old wheel &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope I have answered your query. Could you please spare a second to mark the topic as resolved.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 04:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Understanding-tMap-or-tJava-components-behavior/m-p/2324403#M94112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-09T04:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding tMap or tJava components behavior</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Understanding-tMap-or-tJava-components-behavior/m-p/2324404#M94113</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;No, they are the same as each other:&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="34.png" style="width: 786px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6Bs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151631i845C706D21620DBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6Bs.png" alt="0683p000009M6Bs.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="35.png" style="width: 900px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6Eb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148874i53F87DB09EB1B9C2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6Eb.png" alt="0683p000009M6Eb.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I also mentioned I can't use join, this question is a simplified case of my problem and I need the cartesian result.&lt;/P&gt; 
&lt;P&gt;Just assume the name of the CSV2 is part of the name of CSV1, now you cannot use the join as it always gives 0 results.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 06:14:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Understanding-tMap-or-tJava-components-behavior/m-p/2324404#M94113</guid>
      <dc:creator>DM_J</dc:creator>
      <dc:date>2019-07-09T06:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding tMap or tJava components behavior</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Understanding-tMap-or-tJava-components-behavior/m-p/2324405#M94114</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPGOAA4"&gt;@DM_J&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Unfortunately I am really confused what you are trying to achieve in this use case.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You had initially asked two queries and I had showed how it is working properly for your sample data. Right now, are you saying that your lookup and main flow are same but you are not getting any match?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Could you please rephrase your query along with current and expected output details so that Talend community members can give informed thoughts.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 14:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Understanding-tMap-or-tJava-components-behavior/m-p/2324405#M94114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-09T14:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding tMap or tJava components behavior</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Understanding-tMap-or-tJava-components-behavior/m-p/2324406#M94115</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006eKOgAAM"&gt;@nthampi&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to thank you and accept your answer as you mentioned about separator "&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;you are using tab as the line separator. But most probably you must not have changed the default line separator semicolon to Tab in both or one of the input files"&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;The problem was about caching old separator even after changing that to another. When I used Java debug mode it was solved. I mentioned this issue here:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D73p000004kaePCAQ" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Old-changes-Caches-after-new-changes/m-p/165961/a&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 02:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Understanding-tMap-or-tJava-components-behavior/m-p/2324406#M94115</guid>
      <dc:creator>DM_J</dc:creator>
      <dc:date>2019-07-10T02:58:30Z</dc:date>
    </item>
  </channel>
</rss>

