<?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: Tmap expression always false in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321250#M91307</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LL8lAAG"&gt;@pnair123&lt;/A&gt;,condition is right one,if you have configured your tMap correctly then the problem with data.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please check.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jun 2018 11:58:00 GMT</pubDate>
    <dc:creator>manodwhb</dc:creator>
    <dc:date>2018-06-28T11:58:00Z</dc:date>
    <item>
      <title>Tmap expression always false</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321248#M91305</link>
      <description>Hi there,&lt;BR /&gt;I an joining a tfileinput and a table in tamp and comparing two integer fields. My condition looks like this&lt;BR /&gt;&lt;BR /&gt;row1.rec_count==row2.lz_count?0:1&lt;BR /&gt;However, the condition is always failing even though the counts match (I checked the output with a tlogrow) and both rec_count and lz_count are defined as integer. Do you have any idea why?</description>
      <pubDate>Wed, 27 Jun 2018 22:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321248#M91305</guid>
      <dc:creator>pnair123</dc:creator>
      <dc:date>2018-06-27T22:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap expression always false</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321249#M91306</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Could you please post your tMap editor screenshot on forum? Did you put your condition in tMap expression field?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 08:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321249#M91306</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-28T08:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap expression always false</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321250#M91307</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LL8lAAG"&gt;@pnair123&lt;/A&gt;,condition is right one,if you have configured your tMap correctly then the problem with data.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please check.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 11:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321250#M91307</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-06-28T11:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap expression always false</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321251#M91308</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LL8lAAG"&gt;@pnair123&lt;/A&gt;,condition is right one,if you have configured your tMap correctly then the problem with data.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please check.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 12:00:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321251#M91308</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-06-28T12:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap expression always false</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321252#M91309</link>
      <description>Alternative: Join also on the the count fields in addition to the filenames in the tMap component then row2.lz_count == null ? 0 : 1
&lt;BR /&gt;
&lt;BR /&gt;Do you use the 0 or 1 as a bit/boolean?
&lt;BR /&gt;Change it's value in true or false and type boolean
&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jun 2018 15:55:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321252#M91309</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-06-28T15:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap expression always false</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321253#M91310</link>
      <description>&lt;P&gt;Thanks for your suggestion. I figured out the issue. One field was defined as integer and other was defined as integer(11). When I changed both to integer(11), it worked.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 17:12:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321253#M91310</guid>
      <dc:creator>pnair123</dc:creator>
      <dc:date>2018-06-28T17:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap expression always false</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321254#M91311</link>
      <description>WOW. really... hummm it made (re)think again on what happens on a low level and recently I read something about hash comparison (stored in bytes) vs string comparison vs integer comparison... the only thing I can come up with is... it compares the whole block of bytes. a block size of 4 vs 8 even if they both store the same value 1 ... their byte representation still differs... If somebody has a better explanation love to read it! 
&lt;BR /&gt; 
&lt;BR /&gt;Thank you for your post and solving the issue!!! 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;) 
&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jun 2018 22:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321254#M91311</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-06-28T22:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap expression always false</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321255#M91312</link>
      <description>&lt;P&gt;NO this is not the actually reason. The length of a data type will never be used within the job! Such settings only are used when the job has to create the table for itself.&lt;/P&gt; 
&lt;P&gt;The reason why your expression is not working is because you have to think about what == actually means in Java!&lt;/P&gt; 
&lt;P&gt;It means the SAME content of the variable! If you have both values as none nullable integer, then both variables have the same content.&lt;/P&gt; 
&lt;P&gt;If you have nullable Integer the variables actually contains the addresses of the Integer objects and in most cases both Integer objects are using different addresses within the RAM. The only Java like language dealing with it in a human way is Groovy.&lt;/P&gt; 
&lt;P&gt;if you compare a nullable Integer with a not nullable int value the Integer value will be converted implicit into the primitive value and now the == works well. If you have both values a not nullable you have to check both for being not null and than use the equals method!&lt;/P&gt; 
&lt;P&gt;Example:&lt;/P&gt; 
&lt;PRE&gt; (i1 != null &amp;amp;&amp;amp; i1.equals(i2))&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp; this is save and will always work!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jun 2018 22:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321255#M91312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-28T22:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap expression always false</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321256#M91313</link>
      <description>Thanks!&lt;BR /&gt;Started reading a little bit to fully understand what you are saying. So in addition to what you where saying with examples:&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/1514910/how-to-properly-compare-two-integers-in-java" target="_blank" rel="nofollow noopener noreferrer"&gt;https://stackoverflow.com/questions/1514910/how-to-properly-compare-two-integers-in-java&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jun 2018 22:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-expression-always-false/m-p/2321256#M91313</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-06-28T22:57:54Z</dc:date>
    </item>
  </channel>
</rss>

