<?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 using pattern matching in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/lookup-using-pattern-matching/m-p/2224381#M17112</link>
    <description>Thanks a ton Shong, that worked like magic. But I am facing another issue.
&lt;BR /&gt;As I said earlier I am trying to load a Fact table and one of foreign key is DEVICE_KEY. Now as I loaded the fact table the way you told me I am able to get all the records satisfying the condition. Also I am able to get the rejected values (using enable/disable output reject) as another output. Now my issue I am facing is that my reject output is in multiples of the no. of devices in the device dimension table. 
&lt;BR /&gt;For Example, suppose I have 10 transactions and 5 device names. Now I use the lookup logic as guided by u and am able to get output where 3 devices matches so I am getting 7 records as output. But in the reject output I am getting 43 records/transactions. 
&lt;BR /&gt;What I deduct from this is that for each 5 devices all 10 transactions are checked and the output is sent as 50 transactions. 
&lt;BR /&gt;What I expected to get was.. if DEVICE_NAME matches then add DEVICE_KEY else add null i.e. no transaction/records should be missed (as in my case I am missing 3 records.) 
&lt;BR /&gt;It would be great if you could guide me how it can be done.
&lt;BR /&gt;Thanks and Regards,
&lt;BR /&gt;AvantA</description>
    <pubDate>Wed, 18 Aug 2010 11:39:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-08-18T11:39:10Z</dc:date>
    <item>
      <title>lookup using pattern matching</title>
      <link>https://community.qlik.com/t5/Talend-Studio/lookup-using-pattern-matching/m-p/2224379#M17110</link>
      <description>Hi all, 
&lt;BR /&gt;Im a newbie to Talend and was trying to use to create a transformation. I am trying to create a Dimensional model and have created few dimension tables. Now for loading to Fact table I need to do lookup on Dimension tables before loading. This is where my problem starts. 
&lt;BR /&gt;I have a dimension 
&lt;BR /&gt;Device_dim 
&lt;BR /&gt;DEVICE_KEY DEVICE_NAME 
&lt;BR /&gt;1 Nokia 
&lt;BR /&gt;2 LG 
&lt;BR /&gt;.. 
&lt;BR /&gt;.. 
&lt;BR /&gt;so on 
&lt;BR /&gt;Now my in my input stream the field where I get the device name is a long string which has the device name somewhere in between. eg. 
&lt;BR /&gt;xyz abc/Nokia-N97:abc def 
&lt;BR /&gt;also the device name can come up anywhere in between the string. i.e. xyz abLG-c/kkjfhsdef 
&lt;BR /&gt;As in perl you can do pattern matching or simply grep to check the avalability of the DEVICE_NAME in the string and return DEVICE_NAME but my transformation is in java. 
&lt;BR /&gt;Im using tMap to do lookup but as the string value in input stream is a long string with the DEVICE_NAME somewhere in between I am not able to create a transformation to do lookup on two values with a common pattern. 
&lt;BR /&gt;Please help as its urgent. For better understanding of my problem please IM me on gtalk: avantasingh@gmail.com 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;AvantA</description>
      <pubDate>Sat, 16 Nov 2024 13:18:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/lookup-using-pattern-matching/m-p/2224379#M17110</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: lookup using pattern matching</title>
      <link>https://community.qlik.com/t5/Talend-Studio/lookup-using-pattern-matching/m-p/2224380#M17111</link>
      <description>Hi
&lt;BR /&gt;Do a out join on tMap and add a filter condition on output table.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 18 Aug 2010 04:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/lookup-using-pattern-matching/m-p/2224380#M17111</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-18T04:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: lookup using pattern matching</title>
      <link>https://community.qlik.com/t5/Talend-Studio/lookup-using-pattern-matching/m-p/2224381#M17112</link>
      <description>Thanks a ton Shong, that worked like magic. But I am facing another issue.
&lt;BR /&gt;As I said earlier I am trying to load a Fact table and one of foreign key is DEVICE_KEY. Now as I loaded the fact table the way you told me I am able to get all the records satisfying the condition. Also I am able to get the rejected values (using enable/disable output reject) as another output. Now my issue I am facing is that my reject output is in multiples of the no. of devices in the device dimension table. 
&lt;BR /&gt;For Example, suppose I have 10 transactions and 5 device names. Now I use the lookup logic as guided by u and am able to get output where 3 devices matches so I am getting 7 records as output. But in the reject output I am getting 43 records/transactions. 
&lt;BR /&gt;What I deduct from this is that for each 5 devices all 10 transactions are checked and the output is sent as 50 transactions. 
&lt;BR /&gt;What I expected to get was.. if DEVICE_NAME matches then add DEVICE_KEY else add null i.e. no transaction/records should be missed (as in my case I am missing 3 records.) 
&lt;BR /&gt;It would be great if you could guide me how it can be done.
&lt;BR /&gt;Thanks and Regards,
&lt;BR /&gt;AvantA</description>
      <pubDate>Wed, 18 Aug 2010 11:39:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/lookup-using-pattern-matching/m-p/2224381#M17112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-18T11:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: lookup using pattern matching</title>
      <link>https://community.qlik.com/t5/Talend-Studio/lookup-using-pattern-matching/m-p/2224382#M17113</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi&lt;BR /&gt;Do a out join on tMap and add a filter condition on output table.&lt;BR /&gt;Best regards&lt;BR /&gt;Shong&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Hi Shong, I really need your help in this. Can youe please guide me through the issue I am facing. 
&lt;BR /&gt;Thanks and Regards,
&lt;BR /&gt;AvantA</description>
      <pubDate>Thu, 19 Aug 2010 06:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/lookup-using-pattern-matching/m-p/2224382#M17113</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-19T06:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: lookup using pattern matching</title>
      <link>https://community.qlik.com/t5/Talend-Studio/lookup-using-pattern-matching/m-p/2224383#M17114</link>
      <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;What I expected to get was.. if DEVICE_NAME matches then add DEVICE_KEY else add null i.e. no transaction/records should be missed (as in my case I am missing 3 records.)&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Please give us an example to explain your problem. What's input records? What's are you expected result?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 19 Aug 2010 06:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/lookup-using-pattern-matching/m-p/2224383#M17114</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-19T06:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: lookup using pattern matching</title>
      <link>https://community.qlik.com/t5/Talend-Studio/lookup-using-pattern-matching/m-p/2224384#M17115</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hello&lt;BR /&gt;
     &lt;BLOCKQUOTE&gt;
      &lt;TABLE border="1"&gt;
       &lt;TBODY&gt;
        &lt;TR&gt;
         &lt;TD&gt;What I expected to get was.. if DEVICE_NAME matches then add DEVICE_KEY else add null i.e. no transaction/records should be missed (as in my case I am missing 3 records.)&lt;/TD&gt;
        &lt;/TR&gt;
       &lt;/TBODY&gt;
      &lt;/TABLE&gt;
     &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Please give us an example to explain your problem. What's input records? What's are you expected result?&lt;BR /&gt;Best regards&lt;BR /&gt;Shong&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Suppose I have two tables.
&lt;BR /&gt;Device_Dim_table
&lt;BR /&gt;======================
&lt;BR /&gt;DEVICE_KEY DEVICE_NAME
&lt;BR /&gt;1 Nokia
&lt;BR /&gt;2 Samsung
&lt;BR /&gt;---------------------------------------
&lt;BR /&gt;Input_Table
&lt;BR /&gt;======================
&lt;BR /&gt;URI DEVICE_STRING 
&lt;BR /&gt;google.com hi/abcdef1234 Nokia-N97?why
&lt;BR /&gt;yahoo.com sdgfsgsLGSGDFj /sfkjhkjs
&lt;BR /&gt;---------------------------------------
&lt;BR /&gt;Fact Table Output (I am getting)
&lt;BR /&gt;======================
&lt;BR /&gt;URI DEVICE_KEY
&lt;BR /&gt;google.com 1
&lt;BR /&gt;---------------------------------------
&lt;BR /&gt;Expected FACT Table output
&lt;BR /&gt;======================
&lt;BR /&gt;URI DEVICE_KEY
&lt;BR /&gt;google.com 1
&lt;BR /&gt;yahoo.com null
&lt;BR /&gt;---------------------------------------
&lt;BR /&gt;
&lt;BR /&gt;Thanks and Regards
&lt;BR /&gt;AvantA</description>
      <pubDate>Thu, 19 Aug 2010 10:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/lookup-using-pattern-matching/m-p/2224384#M17115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-08-19T10:11:35Z</dc:date>
    </item>
  </channel>
</rss>

