<?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 tMap multiple lookups best design in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-multiple-lookups-best-design/m-p/2310921#M82003</link>
    <description>Scenario:
&lt;BR /&gt; Process incomming fact rows from an (main) input (tOracleInput, for example) with several lookups (lookup links), using a tMap
&lt;BR /&gt;Issues:
&lt;BR /&gt; One or more lookups may be unsuccessful.
&lt;BR /&gt; checking the "inner join" on lookups causes subsequent lookups in the inputs to be skipped (not good)
&lt;BR /&gt;Desired design:
&lt;BR /&gt; Output records in which ALL lookups are successful to 1 output (output_success)
&lt;BR /&gt; Output records in which one OR MORE lookups are unsuccessful, ouput to a separate output (output_rejects). ALL lookups need to be attemped in the tMap
&lt;BR /&gt; In a subsequent component(s), resolve any NULL keys in the output_rejects to "default" keys (via "default lookups") and then output to output_resolved
&lt;BR /&gt; Merge output_success with output_resolved, and then tOuput to database
&lt;BR /&gt;
&lt;BR /&gt;Alternate design:
&lt;BR /&gt; Output all records to output_1, regardless of failure of any one lookup
&lt;BR /&gt; In a subsequent component(s), resolve any NULL keys in the output_1 to "default" keys (via "default lookups") and then re-output 
&lt;BR /&gt;
&lt;BR /&gt;Is there a best practice on this in consideration of the "inner join" issue described above?
&lt;BR /&gt;Dave</description>
    <pubDate>Sat, 16 Nov 2024 13:47:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:47:51Z</dc:date>
    <item>
      <title>tMap multiple lookups best design</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-multiple-lookups-best-design/m-p/2310921#M82003</link>
      <description>Scenario:
&lt;BR /&gt; Process incomming fact rows from an (main) input (tOracleInput, for example) with several lookups (lookup links), using a tMap
&lt;BR /&gt;Issues:
&lt;BR /&gt; One or more lookups may be unsuccessful.
&lt;BR /&gt; checking the "inner join" on lookups causes subsequent lookups in the inputs to be skipped (not good)
&lt;BR /&gt;Desired design:
&lt;BR /&gt; Output records in which ALL lookups are successful to 1 output (output_success)
&lt;BR /&gt; Output records in which one OR MORE lookups are unsuccessful, ouput to a separate output (output_rejects). ALL lookups need to be attemped in the tMap
&lt;BR /&gt; In a subsequent component(s), resolve any NULL keys in the output_rejects to "default" keys (via "default lookups") and then output to output_resolved
&lt;BR /&gt; Merge output_success with output_resolved, and then tOuput to database
&lt;BR /&gt;
&lt;BR /&gt;Alternate design:
&lt;BR /&gt; Output all records to output_1, regardless of failure of any one lookup
&lt;BR /&gt; In a subsequent component(s), resolve any NULL keys in the output_1 to "default" keys (via "default lookups") and then re-output 
&lt;BR /&gt;
&lt;BR /&gt;Is there a best practice on this in consideration of the "inner join" issue described above?
&lt;BR /&gt;Dave</description>
      <pubDate>Sat, 16 Nov 2024 13:47:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-multiple-lookups-best-design/m-p/2310921#M82003</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: tMap multiple lookups best design</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-multiple-lookups-best-design/m-p/2310922#M82004</link>
      <description>Hi,&lt;BR /&gt;Instead of using tMap for lookup I use tJoin for for all the lookups and place the rejected records in  log file. &lt;BR /&gt;For making a better and uniform suructure along with time value  in the log file I use tMap for the rejected records and place the records in log file&lt;BR /&gt;I feel it is better for debugging, maintaining a job.&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;pravu Mishra.</description>
      <pubDate>Thu, 10 Sep 2009 08:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-multiple-lookups-best-design/m-p/2310922#M82004</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-10T08:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: tMap multiple lookups best design</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-multiple-lookups-best-design/m-p/2310923#M82005</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi,&lt;BR /&gt;Instead of using tMap for lookup I use tJoin for for all the lookups and place the rejected records in log file. &lt;BR /&gt;For making a better and uniform suructure along with time value in the log file I use tMap for the rejected records and place the records in log file&lt;BR /&gt;I feel it is better for debugging, maintaining a job.&lt;BR /&gt;Thanks and Regards,&lt;BR /&gt;pravu Mishra.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;What my goal is, is to process all rows in one place, for which one OR MORE "lookups" have failed upstream. Maybe, I can link a series of tJoins together (one for each lookup). If a lookup fails, I would place a key value of -1 (tag as a logical failure) in the lookup key. However, I would want ALL rows to continue to the next tJoin (as if successful), and so on. Finally, after the last tJoin, I could usesomething like a tJavaRow to test for any -1 values that exist in any key columns. I would then send those rows to a tMap which does lookups for DEFAULT vaules. I would then want to merge back all corrected rows (with the default values substituted) back in the main stream (of success rows), which woud go to a final tmap for output.
&lt;BR /&gt;How does that sound?</description>
      <pubDate>Thu, 10 Sep 2009 17:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-multiple-lookups-best-design/m-p/2310923#M82005</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-10T17:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: tMap multiple lookups best design</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-multiple-lookups-best-design/m-p/2310924#M82006</link>
      <description>It sounds good.
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;If a lookup fails, I would place If a lookup fails, I would place a key value of -1 (tag as a logical failure) in the lookup key. However, I would want ALL rows to continue to the next tJoin (as if successful), and so on. Finally, after the last tJoin, I could usesomething like a tJavaRow to test for any -1 values that exist in any key columns. I would then send those rows to a tMap which does lookups for DEFAULT vaules. I would then want to merge back all corrected rows (with the default values substituted) back in the main stream (of success rows), which woud go to a final tmap for output.&lt;BR /&gt;in the lookup key. However, I would want ALL rows to continue to the next tJoin (as if successful), and so on. Finally, after the last tJoin, I could usesomething like a tJavaRow to test for any -1 values that exist in any key columns. I would then send those rows to a tMap which does lookups for DEFAULT vaules. I would then want to merge back all corrected rows (with the default values substituted) back in the main stream (of success rows), which woud go to a final tmap for output.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;do not have any idea about the mentioned things by you as these are related to your data and the way you need to process those.
&lt;BR /&gt;We may use the rejected option of tJoin for storing the rejected records(lookup fails mentioned by you) into a log file or do some thing( process again for some other condition). 
&lt;BR /&gt;can you send a screen shot of your job, so that I can understand better about your job.
&lt;BR /&gt;Thanks and Regards,
&lt;BR /&gt;Pravu Mishra.</description>
      <pubDate>Fri, 11 Sep 2009 06:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-multiple-lookups-best-design/m-p/2310924#M82006</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-11T06:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: tMap multiple lookups best design</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-multiple-lookups-best-design/m-p/2310925#M82007</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;It sounds good.&lt;BR /&gt;If a lookup fails, I would place If a lookup fails, I would place a key value of -1 (tag as a logical failure) in the lookup key. However, I would want ALL rows to continue to the next tJoin (as if successful), and so on. Finally, after the last tJoin, I could usesomething like a tJavaRow to test for any -1 values that exist in any key columns. I would then send those rows to a tMap which does lookups for DEFAULT vaules. I would then want to merge back all corrected rows (with the default values substituted) back in the main stream (of success rows), which woud go to a final tmap for output.&lt;BR /&gt;in the lookup key. However, I would want ALL rows to continue to the next tJoin (as if successful), and so on. Finally, after the last tJoin, I could usesomething like a tJavaRow to test for any -1 values that exist in any key columns. I would then send those rows to a tMap which does lookups for DEFAULT vaules. I would then want to merge back all corrected rows (with the default values substituted) back in the main stream (of success rows), which woud go to a final tmap for output.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;do not have any idea about the mentioned things by you as these are related to your data and the way you need to process those.
&lt;BR /&gt;We may use the rejected option of tJoin for storing the rejected records(lookup fails mentioned by you) into a log file or do some thing( process again for some other condition). 
&lt;BR /&gt;can you send a screen shot of your job, so that I can understand better about your job.
&lt;BR /&gt;Thanks and Regards,
&lt;BR /&gt;Pravu Mishra.
&lt;BR /&gt;I am planning a job now, so I do not have anything working yet. Once I try this, I will let you know.
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Dave</description>
      <pubDate>Fri, 11 Sep 2009 15:44:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-multiple-lookups-best-design/m-p/2310925#M82007</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-09-11T15:44:58Z</dc:date>
    </item>
  </channel>
</rss>

