<?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: getting null values as output while comparing 2 tables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241874#M28889</link>
    <description>How do you post screenshots here? I do not see a way to upload the image.</description>
    <pubDate>Fri, 22 Apr 2011 17:19:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-04-22T17:19:22Z</dc:date>
    <item>
      <title>getting null values as output while comparing 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241869#M28884</link>
      <description>Hello, I am trying to get the unmatched records from 2 tables. I have 2 tables that are very similar with the exception of a couple of records. I use tMap to join on every field between the 2 tables. The output count from tMap matches the number of unmatched records since I am outputting the rejects however I am getting null values when I output these unmatched records to a tLogRow or to mysql or even a flat file. How can I view what this data is? Note: Unmatched record count matches 100% as I have limited the tables to 10 records for troubleshooting purposes.</description>
      <pubDate>Sat, 16 Nov 2024 12:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241869#M28884</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: getting null values as output while comparing 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241870#M28885</link>
      <description>Hi 
&lt;BR /&gt;Do an inner join on tMap and get the unmatched records, see topics: 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCj6jCAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/How-to-add-logs-for-each-events-in-my-job/td-p/66417&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCjABCA0" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/Query-from-different-databases/td-p/1234&lt;/A&gt; 
&lt;BR /&gt;Let me know if you have any questions! 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 22 Apr 2011 16:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241870#M28885</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-22T16:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: getting null values as output while comparing 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241871#M28886</link>
      <description>Hello Shong, the Inner Join has already been done and this is how I was able to get the unmatched record count however I am still getting null when I output the reject data.</description>
      <pubDate>Fri, 22 Apr 2011 16:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241871#M28886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-22T16:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: getting null values as output while comparing 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241872#M28887</link>
      <description>Hi 
&lt;BR /&gt;The reject data? You meant the unmatched data, right? In the topics I listed as above, I have showed a demo job. If you still get null value, please upload some screenshots of job. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 22 Apr 2011 16:57:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241872#M28887</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-22T16:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: getting null values as output while comparing 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241873#M28888</link>
      <description>The Inner Join was checked with All Records and the purple reject check was clicked on to only pass in the rejects in output but I am just not getting the real values only nulls.</description>
      <pubDate>Fri, 22 Apr 2011 16:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241873#M28888</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-22T16:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: getting null values as output while comparing 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241874#M28889</link>
      <description>How do you post screenshots here? I do not see a way to upload the image.</description>
      <pubDate>Fri, 22 Apr 2011 17:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241874#M28889</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-22T17:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: getting null values as output while comparing 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241875#M28890</link>
      <description>hit "Post reply" and at the bottom you have a dropdown to select the number of upload slots. set this and upload each screen 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 22 Apr 2011 18:21:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241875#M28890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-22T18:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: getting null values as output while comparing 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241876#M28891</link>
      <description>Here are the tMap component and the job screenshots</description>
      <pubDate>Fri, 22 Apr 2011 18:30:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241876#M28891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-22T18:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: getting null values as output while comparing 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241877#M28892</link>
      <description>Hello, I found yesterday a similar issue and (probably) found a solution. 
&lt;BR /&gt;I initially used the same technique explained by Shong (which is btw the same described shortly in the User Guide). 
&lt;BR /&gt;It works, but I had more than a lookup table and I wanted to add a flag telling me which (one or more) lookup failed the inner join causing the reject. 
&lt;BR /&gt;I did not manage to calculate it using the inner join, so this is how I did it : 
&lt;BR /&gt;I have row1 being the main flow, row2 and row3 are lookups where the lookup key is CustomerID (String) for row2 and EmployeeID for row3 
&lt;BR /&gt;1) Both two lookups are set to LEFT OUTER JOIN 
&lt;BR /&gt;2) I calculate two boolean variables customer_reject and employee_reject 
&lt;BR /&gt;3) I add an output flow called reject, but it is a STANDARD output, I just add the filter (Var.customer_reject || Var.employe_reject), it cointains the two flags in output 
&lt;BR /&gt;4) Obviously in the main output flow the filter is !(Var.customer_reject || Var.employe_reject) 
&lt;BR /&gt;Now, the issue I had was in calculating the flags as variables : 
&lt;BR /&gt;1) The first one is a String and when no match is found it's value is null (which is quite "normal" in left outer joins) 
&lt;BR /&gt;2) The other one was a integer and while I was expecting nulls as well, I found zeros (!!!!) 0. for this one I used a different calculation (see screenshot) 
&lt;BR /&gt;@Shong, is there a way to generate nulls instead for case 2)? 
&lt;BR /&gt;Zero can be a valid lookup code, therefore it might be a bit confusing, is it coming from some default? I looked around but found none. 
&lt;BR /&gt;Also, if I use inner joins with multiple lookups, will TOS try to match ALL the lookups if the record is unmatched with the first one? 
&lt;BR /&gt;Maybe, as a feature would be cool to have an additional variable or field automatically calculated for each lookup in inner join which gives you the rejection flag. 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Francesco</description>
      <pubDate>Sat, 23 Apr 2011 07:20:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241877#M28892</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-23T07:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: getting null values as output while comparing 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241878#M28893</link>
      <description>@jgomes:
&lt;BR /&gt;-- Are you trying to output values from the main flow or the lookup flow to your inner-join rejects output? The latter values will (obviously) be null since the join failed.
&lt;BR /&gt;-- Make sure your screenshots fit the limits for the forum i.e. smaller than 1024x768 pixels and 200 KB.
&lt;BR /&gt;@saburo:
&lt;BR /&gt;-- You can also use the "output rejects" flag instead of complementary filters i.e. set the filter to Var.customer_reject || Var.employe_reject on one output and just click the orange arrow on the other.
&lt;BR /&gt;-- If EmployeeID is an int (i.e. non-nullable) it will be set to 0 if the join fails. If you want it to be null, you must change the data type to a nullable Integer. Also see 
&lt;A href="http://www.talendforge.org/bugs/view.php?id=13779" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/bugs/view.php?id=13779&lt;/A&gt;.
&lt;BR /&gt;-- If you use an inner-join and it fails, Talend will not attempt ANY joins below the failed one 
&lt;B&gt;even if&lt;/B&gt; the later joins are left-joins and do not depend on values from the failed join.
&lt;BR /&gt;-- Reject flag already requested in 
&lt;A href="http://www.talendforge.org/bugs/view.php?id=1723&amp;amp;nbn=1" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/bugs/view.php?id=1723&amp;amp;nbn=1&lt;/A&gt;.</description>
      <pubDate>Wed, 27 Apr 2011 01:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/getting-null-values-as-output-while-comparing-2-tables/m-p/2241878#M28893</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2011-04-27T01:52:27Z</dc:date>
    </item>
  </channel>
</rss>

