<?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 compare files using TMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317131#M87610</link>
    <description>I'm following this post where a Talend user was able to compare 2 files using tMap, but I can't replicate his success. Any direction is much appreciated. 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCjzxCAC" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Difference-in-data-rows/td-p/71380&lt;/A&gt; 
&lt;BR /&gt;File to Compare contents (Main) 
&lt;BR /&gt;col1, col2, col3, col4 
&lt;BR /&gt;1,2,3,9 
&lt;BR /&gt;5,6,7,8 
&lt;BR /&gt;Reference File contents (lookup) 
&lt;BR /&gt;col1, col2, col3, col4 
&lt;BR /&gt;1,2,3,4 
&lt;BR /&gt;5,6,7,8 
&lt;BR /&gt;In tMap, I dragged each reference column to the like-named column in the main 
&lt;BR /&gt;row1.col1 -- row2.col1 
&lt;BR /&gt;row1.col2 -- row2.col2 
&lt;BR /&gt;row1.col3 -- row2.col3 
&lt;BR /&gt;row1.col4 -- row2.col4 
&lt;BR /&gt;This plotted purple colored lines and "key" graphics as shown in the screen shot. 
&lt;BR /&gt;I then clicked the tMap Settings button of the row2 and set Join Model to "INNER JOIN" 
&lt;BR /&gt;(I did not set any columns to KEY in the schema editor for either row, because it seems like INNER JOIN should take care of that..) 
&lt;BR /&gt;I then added 2 tFileOutputDelimited components (match and diffs) 
&lt;BR /&gt;I dragged all columns of row1 (lookup) to MATCH and all columns of row2 (main) to DIFFS. 
&lt;BR /&gt;Using tMap Setting of the DIFFS output I set Catch lookup inner join reject to "TRUE". 
&lt;BR /&gt;My output in the match file has the data I expect: 
&lt;BR /&gt;5,6,7,8 
&lt;BR /&gt;But the DIFFS file only contains a separator: 
&lt;BR /&gt;,,, 
&lt;BR /&gt;Whereas I expected this row of data: 
&lt;BR /&gt;1,2,3,9 
&lt;BR /&gt;I've worked thru the tMap example in TalendOpenStudio_Components_RG_41b_EN.pdf and the tutorial here: 
&lt;A href="http://www.talendforge.org/tutorials/tutorial.php?language=english&amp;amp;idTuto=8" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/tutorials/tutorial.php?language=english&amp;amp;idTuto=8&lt;/A&gt;. Of course, both of these trials worked flawlessly, but I've not been able to extract the necessary portions to build my own file compare. 
&lt;BR /&gt;Thanks in advance for any direction/suggestions. 
&lt;BR /&gt;Mark</description>
    <pubDate>Sat, 16 Nov 2024 12:33:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T12:33:06Z</dc:date>
    <item>
      <title>How to compare files using TMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317131#M87610</link>
      <description>I'm following this post where a Talend user was able to compare 2 files using tMap, but I can't replicate his success. Any direction is much appreciated. 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCjzxCAC" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/resolved-Difference-in-data-rows/td-p/71380&lt;/A&gt; 
&lt;BR /&gt;File to Compare contents (Main) 
&lt;BR /&gt;col1, col2, col3, col4 
&lt;BR /&gt;1,2,3,9 
&lt;BR /&gt;5,6,7,8 
&lt;BR /&gt;Reference File contents (lookup) 
&lt;BR /&gt;col1, col2, col3, col4 
&lt;BR /&gt;1,2,3,4 
&lt;BR /&gt;5,6,7,8 
&lt;BR /&gt;In tMap, I dragged each reference column to the like-named column in the main 
&lt;BR /&gt;row1.col1 -- row2.col1 
&lt;BR /&gt;row1.col2 -- row2.col2 
&lt;BR /&gt;row1.col3 -- row2.col3 
&lt;BR /&gt;row1.col4 -- row2.col4 
&lt;BR /&gt;This plotted purple colored lines and "key" graphics as shown in the screen shot. 
&lt;BR /&gt;I then clicked the tMap Settings button of the row2 and set Join Model to "INNER JOIN" 
&lt;BR /&gt;(I did not set any columns to KEY in the schema editor for either row, because it seems like INNER JOIN should take care of that..) 
&lt;BR /&gt;I then added 2 tFileOutputDelimited components (match and diffs) 
&lt;BR /&gt;I dragged all columns of row1 (lookup) to MATCH and all columns of row2 (main) to DIFFS. 
&lt;BR /&gt;Using tMap Setting of the DIFFS output I set Catch lookup inner join reject to "TRUE". 
&lt;BR /&gt;My output in the match file has the data I expect: 
&lt;BR /&gt;5,6,7,8 
&lt;BR /&gt;But the DIFFS file only contains a separator: 
&lt;BR /&gt;,,, 
&lt;BR /&gt;Whereas I expected this row of data: 
&lt;BR /&gt;1,2,3,9 
&lt;BR /&gt;I've worked thru the tMap example in TalendOpenStudio_Components_RG_41b_EN.pdf and the tutorial here: 
&lt;A href="http://www.talendforge.org/tutorials/tutorial.php?language=english&amp;amp;idTuto=8" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/tutorials/tutorial.php?language=english&amp;amp;idTuto=8&lt;/A&gt;. Of course, both of these trials worked flawlessly, but I've not been able to extract the necessary portions to build my own file compare. 
&lt;BR /&gt;Thanks in advance for any direction/suggestions. 
&lt;BR /&gt;Mark</description>
      <pubDate>Sat, 16 Nov 2024 12:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317131#M87610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare files using TMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317132#M87611</link>
      <description>Hi Mark,&lt;BR /&gt;Instead of using the data from row2 in your second output, use the data from row1. You should see it then &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 23 Nov 2011 21:57:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317132#M87611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-23T21:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare files using TMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317133#M87612</link>
      <description>That works, however, I don't understand why. If the difference is coming from ROW2 (second file), why link the LOOKUP file (ROW1) to DIFFS?&lt;BR /&gt;Anyway, it works...&lt;BR /&gt;Thanks much.&lt;BR /&gt;Mark</description>
      <pubDate>Wed, 23 Nov 2011 23:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317133#M87612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-23T23:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare files using TMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317134#M87613</link>
      <description>Because when you catch inner join rejects, they are rejects. What it means is that the data that came from row1 couldn't find a match in row2, so they are rejected.&lt;BR /&gt;In that case, how do you expect to get data from row2?</description>
      <pubDate>Mon, 28 Nov 2011 19:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317134#M87613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-11-28T19:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare files using TMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317135#M87614</link>
      <description>Thanks for the detailed example on file comparison. I am new to Talend DI and want to do file comparison for my testing requirements. It was very much helpful.
&lt;BR /&gt;In the example it will show the entire row in which there is a difference. But in my case as the file size is huge the requirement is to filter out the specific row and column which is not matching, not the entire row.
&lt;BR /&gt;As per the example here, 
&lt;BR /&gt;File to Compare contents (Main)
&lt;BR /&gt;col1, col2, col3, col4
&lt;BR /&gt;1,2,3,9
&lt;BR /&gt;5,6,7,8
&lt;BR /&gt;Reference File contents (lookup)
&lt;BR /&gt;col1, col2, col3, col4
&lt;BR /&gt;1,2,3,4
&lt;BR /&gt;5,6,7,8
&lt;BR /&gt;The output will show the entire row
&lt;BR /&gt;1,2,3,9
&lt;BR /&gt;where in I want to see only 9 here. Is that possible. Pls guide.</description>
      <pubDate>Tue, 22 Apr 2014 05:41:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317135#M87614</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-04-22T05:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare files using TMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317136#M87615</link>
      <description>Hi Pulak,&lt;BR /&gt;In tMap if you have a join on Col4 only, then you can get the reject. Only condition is that you put single column C4 as reject output and not entire input columns. &lt;BR /&gt;What is your scenario, can you pl put the screenshot?&lt;BR /&gt;Vaibhav</description>
      <pubDate>Tue, 22 Apr 2014 06:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317136#M87615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-22T06:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare files using TMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317137#M87616</link>
      <description>Hi Vaibhav,
&lt;BR /&gt;Thanks for your answer. The requirement here is, I dont want see the entire row, rather I want to see the specific column where is the difference. In large files the data may vary in any of the columns.
&lt;BR /&gt;So my question is, can tmap point the exact cell where is the difference rather than showing the entire row.
&lt;BR /&gt;To give an example,
&lt;BR /&gt;File1,
&lt;BR /&gt;1234
&lt;BR /&gt;5678
&lt;BR /&gt;1111
&lt;BR /&gt;4444
&lt;BR /&gt;FIle2,
&lt;BR /&gt;1234
&lt;BR /&gt;5978
&lt;BR /&gt;1221
&lt;BR /&gt;3444
&lt;BR /&gt;So can I get data in my output file only for the difference,
&lt;BR /&gt;row1: okay
&lt;BR /&gt;row2,col2: 9
&lt;BR /&gt;row3,col2:2,row3,col3:2,
&lt;BR /&gt;row4,col1:3
&lt;BR /&gt;Because in large files you never know where is the difference. My file contains million of records. So if I will get the entire row they its difficult to match up.
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Pulak</description>
      <pubDate>Tue, 22 Apr 2014 14:07:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317137#M87616</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-04-22T14:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare files using TMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317138#M87617</link>
      <description>Hi, &lt;BR /&gt;Please see the KB article about &lt;A href="https://help.talend.com/search/all?query=Converting+columns+to+rows&amp;amp;content-lang=en" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=Converting+columns+to+rows&amp;amp;content-lang=en&lt;/A&gt; &lt;BR /&gt;Once these key value pairs are generated, compare it to each other and get rejected in the output file.&lt;BR /&gt;I think you got the idea. hope it will be helpful for you.&lt;BR /&gt;Best regards&lt;BR /&gt;Vaibhav</description>
      <pubDate>Tue, 22 Apr 2014 14:15:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-compare-files-using-TMap/m-p/2317138#M87617</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-04-22T14:15:14Z</dc:date>
    </item>
  </channel>
</rss>

