<?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: Filter rejects from an inner join reject output in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Filter-rejects-from-an-inner-join-reject-output/m-p/2257295#M39425</link>
    <description>Thanks Vapukov for the quick response. I have tried that and was able to capture join rejects.&lt;BR /&gt;My issue is with date filter on the joined results that needs to be filtered.&lt;BR /&gt;&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Table a:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;id &amp;nbsp;name &amp;nbsp;produce_id &amp;nbsp;cost &amp;nbsp;date&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;1 &amp;nbsp; Tom &amp;nbsp; &amp;nbsp; a1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.50 &amp;nbsp; &amp;nbsp;9/26/2016&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;2 &amp;nbsp; Jerry &amp;nbsp; &amp;nbsp; b1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.00 &amp;nbsp; &amp;nbsp;9/26/2016&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;3 &amp;nbsp; Tom &amp;nbsp; &amp;nbsp; a1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.00 &amp;nbsp; &amp;nbsp;6/26/2016&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Table b:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;id &amp;nbsp; &amp;nbsp; produce &amp;nbsp; start_dt &amp;nbsp; &amp;nbsp; &amp;nbsp;end_dt &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;a1 &amp;nbsp; apple &amp;nbsp; &amp;nbsp;7/1/2016 &amp;nbsp; &amp;nbsp;9/30/2016&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;a1 &amp;nbsp; apple &amp;nbsp; 10/1/2016 &amp;nbsp;12/31/2016&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;In the above example:&lt;BR /&gt;Only the first row in Table a should go through and I should be able to capture the second and third rows as rejects. I am having difficulty in capturing the 3rd row where the join key matches but not the date between.</description>
    <pubDate>Wed, 16 Nov 2016 04:51:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-16T04:51:31Z</dc:date>
    <item>
      <title>Filter rejects from an inner join reject output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-rejects-from-an-inner-join-reject-output/m-p/2257293#M39423</link>
      <description>Hi,
&lt;BR /&gt;I have a problem, which is as follows:
&lt;BR /&gt;
&lt;B&gt;Table a:&lt;/B&gt;
&lt;BR /&gt;id &amp;nbsp;name &amp;nbsp;produce_id &amp;nbsp;cost &amp;nbsp;date
&lt;BR /&gt;1 &amp;nbsp; Tom &amp;nbsp; &amp;nbsp; a1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.50 &amp;nbsp; &amp;nbsp;9/26/2016
&lt;BR /&gt;2 &amp;nbsp; Jerry &amp;nbsp; &amp;nbsp; b1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.00 &amp;nbsp; &amp;nbsp;9/26/2016
&lt;BR /&gt;
&lt;B&gt;Table b:&lt;/B&gt;
&lt;BR /&gt;id &amp;nbsp; &amp;nbsp; produce &amp;nbsp; start_dt &amp;nbsp; &amp;nbsp; &amp;nbsp;end_dt &amp;nbsp;&amp;nbsp;
&lt;BR /&gt;a1 &amp;nbsp; apple &amp;nbsp; &amp;nbsp;7/1/2016 &amp;nbsp; &amp;nbsp;9/30/2016
&lt;BR /&gt;a1 &amp;nbsp; apple &amp;nbsp; 10/1/2016 &amp;nbsp;12/31/2016
&lt;BR /&gt;I'd like to join table a and table b using a.produce_id = b.id and a.date between b.start_dt and b.end_dt.
&lt;BR /&gt;The result should yield 1 single row in the matched output stream, and the reject output should only capture 1 row (row 2 from table a, not the inner join "all match" reject based on filter). I want to capture reject rows from table 1.
&lt;BR /&gt;When I use, tMap and do an inner join with All Match with join keys a.produce_id = b.id and use an out file for capturing matched rows and another file to capture unmatched rows, I get 2 rows in the unmatched (reject) output as it is capturing both the unmatched row and the inner join rejects of the filter.
&lt;BR /&gt;I'd appreciate if someone could show a sample of the tmap join/filter expression, output (with any expression), and reject output (settings/expressions).
&lt;BR /&gt;Best,
&lt;BR /&gt;Shaun&amp;nbsp;</description>
      <pubDate>Sat, 16 Nov 2024 10:15:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-rejects-from-an-inner-join-reject-output/m-p/2257293#M39423</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Filter rejects from an inner join reject output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-rejects-from-an-inner-join-reject-output/m-p/2257294#M39424</link>
      <description>It not cover all 100% of possible cases, and it catch as rejected from Main flow (not from lookup) 
&lt;BR /&gt;so in Your example Table1 - main, Table2 - lookup: 
&lt;BR /&gt; 
&lt;BR /&gt;this case not cover date conditions (need more tests) - You can easy add filter to the output flow and it will reject wrong records, but how include them to the rejected - need more investigate 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCGq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129833iCDAF8713B0494D8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCGq.png" alt="0683p000009MCGq.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCAG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137752iE4EBA20C0498CDC8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCAG.png" alt="0683p000009MCAG.png" /&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCG3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146841i90FB561299DB3EC4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCG3.png" alt="0683p000009MCG3.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 15 Nov 2016 04:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-rejects-from-an-inner-join-reject-output/m-p/2257294#M39424</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-11-15T04:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filter rejects from an inner join reject output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-rejects-from-an-inner-join-reject-output/m-p/2257295#M39425</link>
      <description>Thanks Vapukov for the quick response. I have tried that and was able to capture join rejects.&lt;BR /&gt;My issue is with date filter on the joined results that needs to be filtered.&lt;BR /&gt;&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Table a:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;id &amp;nbsp;name &amp;nbsp;produce_id &amp;nbsp;cost &amp;nbsp;date&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;1 &amp;nbsp; Tom &amp;nbsp; &amp;nbsp; a1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.50 &amp;nbsp; &amp;nbsp;9/26/2016&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;2 &amp;nbsp; Jerry &amp;nbsp; &amp;nbsp; b1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.00 &amp;nbsp; &amp;nbsp;9/26/2016&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;3 &amp;nbsp; Tom &amp;nbsp; &amp;nbsp; a1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.00 &amp;nbsp; &amp;nbsp;6/26/2016&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Table b:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;id &amp;nbsp; &amp;nbsp; produce &amp;nbsp; start_dt &amp;nbsp; &amp;nbsp; &amp;nbsp;end_dt &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;a1 &amp;nbsp; apple &amp;nbsp; &amp;nbsp;7/1/2016 &amp;nbsp; &amp;nbsp;9/30/2016&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;a1 &amp;nbsp; apple &amp;nbsp; 10/1/2016 &amp;nbsp;12/31/2016&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;In the above example:&lt;BR /&gt;Only the first row in Table a should go through and I should be able to capture the second and third rows as rejects. I am having difficulty in capturing the 3rd row where the join key matches but not the date between.</description>
      <pubDate>Wed, 16 Nov 2016 04:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-rejects-from-an-inner-join-reject-output/m-p/2257295#M39425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-16T04:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Filter rejects from an inner join reject output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Filter-rejects-from-an-inner-join-reject-output/m-p/2257296#M39426</link>
      <description>not ready to warrant for 100% (task hypothetical,but not with all possible) 
&lt;BR /&gt;in additional to the JOIN, add filters, filter conditions same: 
&lt;BR /&gt; 
&lt;PRE&gt;TalendDate.compareDate(row2.start_dt,row1.date,"yyyy-MM-dd")&amp;lt;0&amp;amp;&amp;amp;TalendDate.compareDate(row2.end_dt,row1.date,"yyyy-MM-dd")&amp;gt;=0&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;and reload lookup file for each iteration - this I not sure for 100% how it will work with LOAD ONECE, so I just go by 100% correct way 
&lt;BR /&gt;filter - reject from lookup file records not matched by filter conditions for current record 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCH0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/129503i0C033ADA594B3825/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCH0.png" alt="0683p000009MCH0.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCH5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155223iF15A9FEF53DBEE37/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCH5.png" alt="0683p000009MCH5.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCDK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141560i25C03E4C25D93924/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCDK.png" alt="0683p000009MCDK.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCDt.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133537i696AD8C0930798DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCDt.png" alt="0683p000009MCDt.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Talend Date functions not understand '9/26/2016' with pattern 'MM/dd/yyyy', You must handle leading 0 for proper work test examples</description>
      <pubDate>Thu, 17 Nov 2016 04:26:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Filter-rejects-from-an-inner-join-reject-output/m-p/2257296#M39426</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-11-17T04:26:17Z</dc:date>
    </item>
  </channel>
</rss>

