<?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: Lookup OR condition in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233236#M22962</link>
    <description>See the attached screen-print.  Note that with this data structure Talend will output the "a" row for each "b" row that does not match i.e. multiplying it.  This can't be avoided so to have only one instance of each "a" row that does not match any "b" row, you will need to follow the tMap with a tUniqueRow.  That requires that each "a" row can be uniquely identified.&lt;BR /&gt;Alternatively, you would have to have three left-join lookups to "b" with your output condition being:  b1.b1==null &amp;amp;&amp;amp; b2.b1==null &amp;amp;&amp;amp; b3.b1==null</description>
    <pubDate>Tue, 09 Nov 2010 05:10:05 GMT</pubDate>
    <dc:creator>alevy</dc:creator>
    <dc:date>2010-11-09T05:10:05Z</dc:date>
    <item>
      <title>Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233231#M22957</link>
      <description>I have two inputs a and b&lt;BR /&gt;I need to do a lookup as the following OR condition&lt;BR /&gt;a.a1 = b.b1 or a.a1=b.b2 or a.a1=b.b3, if no match in all these 3 fields, go to reject file&lt;BR /&gt;Can I simply use one TMAP with one lookup to specify this condition to get the matched and reject?&lt;BR /&gt;Much appreiated</description>
      <pubDate>Sat, 16 Nov 2024 13:13:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233231#M22957</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233232#M22958</link>
      <description>Yes but see 
&lt;A href="http://www.talendforge.org/bugs/view.php?id=12344" target="_blank" rel="nofollow noopener noreferrer"&gt;this bug&lt;/A&gt;.
&lt;BR /&gt;You will either need a field in your lookup that can be set as your join to access the inner join rejects (if you have to, add a dummy field with a fixed value using tJavaRow so that value can be specified as your join in tMap)
&lt;BR /&gt;or you will need an expression filter for your matched output flow and output rejects for the remainder.</description>
      <pubDate>Sun, 07 Nov 2010 22:18:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233232#M22958</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-11-07T22:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233233#M22959</link>
      <description>Alevy,
&lt;BR /&gt;Thanks so much for your information. I am new to Talend. Could you explain more about the second option? My request is to create an account list where a.a1 != b.b1 and a.a1!=b.b2 and a.a1!=b.b3.
&lt;BR /&gt;Peter</description>
      <pubDate>Mon, 08 Nov 2010 16:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233233#M22959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-08T16:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233234#M22960</link>
      <description>What data type are your fields: the correct syntax depends on the type and whether the fields are nullable?</description>
      <pubDate>Mon, 08 Nov 2010 22:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233234#M22960</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-11-08T22:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233235#M22961</link>
      <description>all the 4 fileds are string(8)&lt;BR /&gt;only b.b1 not nullable&lt;BR /&gt;a.a1, b.b2, b.b3 nullable</description>
      <pubDate>Tue, 09 Nov 2010 04:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233235#M22961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-09T04:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233236#M22962</link>
      <description>See the attached screen-print.  Note that with this data structure Talend will output the "a" row for each "b" row that does not match i.e. multiplying it.  This can't be avoided so to have only one instance of each "a" row that does not match any "b" row, you will need to follow the tMap with a tUniqueRow.  That requires that each "a" row can be uniquely identified.&lt;BR /&gt;Alternatively, you would have to have three left-join lookups to "b" with your output condition being:  b1.b1==null &amp;amp;&amp;amp; b2.b1==null &amp;amp;&amp;amp; b3.b1==null</description>
      <pubDate>Tue, 09 Nov 2010 05:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233236#M22962</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-11-09T05:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233237#M22963</link>
      <description>I should add that .equals is case-sensitive.  Use .equalsIgnoreCase if you want case-insensitive matching.&lt;BR /&gt;Also, unless trailing spaces are important (in which case you need to be careful about the length of your strings), you should trim the incoming data (advanced option in tDBInput).</description>
      <pubDate>Tue, 09 Nov 2010 05:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233237#M22963</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-11-09T05:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233238#M22964</link>
      <description>Thanks so much for your inforation. Alevy. I tried, it is working. Please see the image I uploaded. 
&lt;BR /&gt;Just a little modification. 
&lt;BR /&gt;I have 'a' file 
&lt;BR /&gt;1,11 
&lt;BR /&gt;2,22 
&lt;BR /&gt;3,33 
&lt;BR /&gt;4,44 
&lt;BR /&gt;5,55 
&lt;BR /&gt;b file 
&lt;BR /&gt;11 ,88 ,99 
&lt;BR /&gt;66 , 22,33 
&lt;BR /&gt;77 , ,33 
&lt;BR /&gt;the output is 
&lt;BR /&gt;4;44;0;;;; 
&lt;BR /&gt;5;55;0;;;; 
&lt;BR /&gt;This is what I want. for the value 44 and 55, they can't be found in all the 3 fields in the b file. 
&lt;BR /&gt;In order to do this, I need to use your expression, but just get the records which be found in any of the 3 fileds in the b file, 
&lt;BR /&gt;that is 11, 22, 33, later I use another tMap componet to get the 'a' records excluding 11,22,33. 
&lt;BR /&gt;If using your way, for 11 value, it doesn't exist in some record, but it should not go the the output. Becaue it doesn't exist in another record. 
&lt;BR /&gt;1) I think this is the best way. If you can better way, such as do it in only one tMap component, please let me know....... 
&lt;BR /&gt;2) I am wondering the first way you mentioned, how do use tJavaRow to do the same thing? 
&lt;BR /&gt;Forgive me asking so many questions. I am just a beginner. 
&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;</description>
      <pubDate>Sun, 14 Nov 2010 19:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233238#M22964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-14T19:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233239#M22965</link>
      <description>the img is too big, changed the format and reupload it as below</description>
      <pubDate>Sun, 14 Nov 2010 19:15:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233239#M22965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-14T19:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233240#M22966</link>
      <description>repload</description>
      <pubDate>Sun, 14 Nov 2010 19:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233240#M22966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-14T19:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233241#M22967</link>
      <description>repload</description>
      <pubDate>Sun, 14 Nov 2010 19:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233241#M22967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-14T19:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233242#M22968</link>
      <description>I don't quite understand what you want now? The tMap example I posted should give you the records from a that don't match any field in b in one step...
&lt;BR /&gt;Ignore my previous comment about tJavaRow; it was incorrect.
&lt;BR /&gt;A couple of other comments about your image:
&lt;BR /&gt;- The tReplicate multiplies your flow so it can go to more than one component. It is pointless as you've used it.
&lt;BR /&gt;- You do not need to sort your flow to use tUniqueRow.</description>
      <pubDate>Sun, 14 Nov 2010 22:05:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233242#M22968</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-11-14T22:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233243#M22969</link>
      <description>uploaded</description>
      <pubDate>Mon, 15 Nov 2010 16:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233243#M22969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-15T16:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233244#M22970</link>
      <description>uploaded</description>
      <pubDate>Mon, 15 Nov 2010 16:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233244#M22970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-15T16:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233245#M22971</link>
      <description>upload</description>
      <pubDate>Mon, 15 Nov 2010 16:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233245#M22971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-15T16:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233246#M22972</link>
      <description>try to upload</description>
      <pubDate>Mon, 15 Nov 2010 16:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233246#M22972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-15T16:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233247#M22973</link>
      <description>repload</description>
      <pubDate>Mon, 15 Nov 2010 16:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233247#M22973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-15T16:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233248#M22974</link>
      <description>upload</description>
      <pubDate>Mon, 15 Nov 2010 16:47:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233248#M22974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-15T16:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233249#M22975</link>
      <description>upload</description>
      <pubDate>Mon, 15 Nov 2010 16:50:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233249#M22975</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-15T16:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup OR condition in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233250#M22976</link>
      <description>Alevy, Thanks for your information.
&lt;BR /&gt;Sorry to try so many times to upload, there is some problem with my screen resolution.
&lt;BR /&gt;Please see the above two screen, originally I did the same set up as you
&lt;BR /&gt;The expression is as the following.
&lt;BR /&gt;row1.a1==null || !(row1.a1.equals(row2.b1) || row1.a1.equals(row2.b2) || row1.a1.equals(row2.b3))
&lt;BR /&gt;I have 'a' file
&lt;BR /&gt;1,11 
&lt;BR /&gt;2,22 
&lt;BR /&gt;3,33 
&lt;BR /&gt;4,44 
&lt;BR /&gt;5,55 
&lt;BR /&gt;b file
&lt;BR /&gt;11 ,88 ,99 
&lt;BR /&gt;66 , 22,33 
&lt;BR /&gt;77 , ,33 
&lt;BR /&gt;The output is as followings
&lt;BR /&gt;1;11;66;22;33
&lt;BR /&gt;1;11;77;;33
&lt;BR /&gt;2;22;11;88;99
&lt;BR /&gt;2;22;77;;33
&lt;BR /&gt;3;33;11;88;99
&lt;BR /&gt;4;44;11;88;99
&lt;BR /&gt;4;44;66;22;33
&lt;BR /&gt;4;44;77;;33
&lt;BR /&gt;5;55;11;88;99
&lt;BR /&gt;5;55;66;22;33
&lt;BR /&gt;5;55;77;;33
&lt;BR /&gt;11, 22, 33 should not be in the output, becasue these value can be found in one of the 3 fields b1, b2, b3 in the b file.
&lt;BR /&gt;2) Another question regarding tReplicate component in the original screen I sent to you, I tried to drag two rows from tUnique and tReplicate into tMap2, but somehow, the system doesn't allow. If I first drag the row tUnique output into tMap2, then I can't add the output from tReplicate. The same problem if I drag the ouput of tReplicate first.
&lt;BR /&gt;That is why I have to use another delimiter input file ponting to the same a file. Do you know why is that?
&lt;BR /&gt;Hopefully this time I explain my situation clearly and you can help me. Thanks.</description>
      <pubDate>Mon, 15 Nov 2010 17:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Lookup-OR-condition-in-tMap/m-p/2233250#M22976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-15T17:02:45Z</dc:date>
    </item>
  </channel>
</rss>

