<?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: Need to compare file data with db in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Need-to-compare-file-data-with-db/m-p/2198689#M1916</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&amp;nbsp;: Thank you for your thoughts. But changing from == to equals did not help.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also below is the sample output I get. From DB, though there are no value which is 0.0, talend is assuming 0.0. I am not sure of the reason. There are 2 issues that I am currently facing:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1) I am unable to compare data in file with DB&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2) I am unable to understand why 0.0 is being picked up for comparison.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;index,startdatetime,enddatetime,subgroup,value,test_case,var1,var3&lt;BR /&gt;0,2018-11-30 12:00:00,2018-11-30 12:15:00,PF1_DH,116.6160,value in file 116.6160 is not same as in db 0.0,116.6160,0.0&lt;BR /&gt;1,2018-11-30 12:15:00,2018-11-30 12:30:00,PF1_DH,115.2323,value in file 115.2323 is not same as in db 0.0,115.2323,0.0&lt;BR /&gt;2,2018-11-30 12:30:00,2018-11-30 12:45:00,PF1_DH,115.2796,value in file 115.2796 is not same as in db 0.0,115.2796,0.0&lt;BR /&gt;....&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Dec 2018 13:29:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-12-04T13:29:05Z</dc:date>
    <item>
      <title>Need to compare file data with db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-compare-file-data-with-db/m-p/2198687#M1914</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;I am recently having lots of trouble while comparing data stored in tHash (stored in hash is data from DB) with data from file.&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;The comparison is always unsuccessful. Please see snapshot "1. job" for job design and "2. tmap_comparison_snashot" for the tmap comparison between file data and db data.&lt;/P&gt; 
&lt;P&gt;1) In tmap I have used expression key for startdatetime and enddatetime between data from file and db because that is the join condition (see left side of the snapshot).&lt;/P&gt; 
&lt;P&gt;2) In tmap variabes part, there is an UDF "ConvertToFloat.floatFormat(row11.value)" used which gets upto 4 decimal places (refer var1 and var3). So, value from both File and DB are upto 4 decimal places.&lt;/P&gt; 
&lt;P&gt;3) In tmap variables part, I check if "Var.var1 == Var.var3", then based on this boolean condition I am considering result as accepted or rejects.&lt;/P&gt; 
&lt;P&gt;4) To see file data and db data, please check attached files - "db_details.txt" and "file_details.txt"&lt;/P&gt; 
&lt;P&gt;5) value - 96.4067 is present in both db and file, same with value - 105.6693 for same startdatetime and enddatetime.&lt;/P&gt; 
&lt;P&gt;6) Though the values up to decimal places are same for db and file, still the comparison is rejected for all records.&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If some one can suggest me how to correct this or better way for comparison., it will be helpful.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 06:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-compare-file-data-with-db/m-p/2198687#M1914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-30T06:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare file data with db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-compare-file-data-with-db/m-p/2198688#M1915</link>
      <description>&lt;P&gt;try use equals instead of ==&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="Screen Shot 2018-11-30 at 9.25.33 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1El.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142421iF70D1AA5690D9B81/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1El.png" alt="0683p000009M1El.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-inline" image-alt="Screen Shot 2018-11-30 at 9.30.12 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1Eq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156667i25EF676330D78855/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1Eq.png" alt="0683p000009M1Eq.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-inline" image-alt="Screen Shot 2018-11-30 at 9.30.16 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M148.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149118iEA7FD2DD2705DBBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M148.png" alt="0683p000009M148.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-inline" image-alt="Screen Shot 2018-11-30 at 9.24.31 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M1F0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152598i52E490B6E572A7A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M1F0.png" alt="0683p000009M1F0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;result:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-11-30 at 9.31.27 PM.png" style="width: 600px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0vl.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146632iC6F33D74AC2B40F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0vl.png" alt="0683p000009M0vl.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Nov 2018 08:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-compare-file-data-with-db/m-p/2198688#M1915</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-11-30T08:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare file data with db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-compare-file-data-with-db/m-p/2198689#M1916</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&amp;nbsp;: Thank you for your thoughts. But changing from == to equals did not help.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also below is the sample output I get. From DB, though there are no value which is 0.0, talend is assuming 0.0. I am not sure of the reason. There are 2 issues that I am currently facing:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1) I am unable to compare data in file with DB&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2) I am unable to understand why 0.0 is being picked up for comparison.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;index,startdatetime,enddatetime,subgroup,value,test_case,var1,var3&lt;BR /&gt;0,2018-11-30 12:00:00,2018-11-30 12:15:00,PF1_DH,116.6160,value in file 116.6160 is not same as in db 0.0,116.6160,0.0&lt;BR /&gt;1,2018-11-30 12:15:00,2018-11-30 12:30:00,PF1_DH,115.2323,value in file 115.2323 is not same as in db 0.0,115.2323,0.0&lt;BR /&gt;2,2018-11-30 12:30:00,2018-11-30 12:45:00,PF1_DH,115.2796,value in file 115.2796 is not same as in db 0.0,115.2796,0.0&lt;BR /&gt;....&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 13:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-compare-file-data-with-db/m-p/2198689#M1916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-04T13:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need to compare file data with db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-compare-file-data-with-db/m-p/2198690#M1917</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it hard to &lt;STRONG&gt;guess&lt;/STRONG&gt; - what wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;good idea - attache as a picture (better then as attachments) all information, including all functions code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you need to add debug elements (like tLogRow) and debug all steps in your subjobs&lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 19:01:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-compare-file-data-with-db/m-p/2198690#M1917</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-12-04T19:01:25Z</dc:date>
    </item>
  </channel>
</rss>

