<?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 Dynamic View as Target Table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230077#M20825</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt; 
&lt;P&gt;I want to use a View as the underlying table of an Oracle SCD2 component (tDBSCD) and the view is created on the fly...view definition is changing for each incoming record however my Talend job is considering the view definition that was at the start of the job and is not considering the view definition changes that are happening on the fly...have anyone worked on a similar situation. To explain more:&lt;/P&gt; 
&lt;P&gt;1) I had a view v_mysource --&amp;gt; create or replace view v_mysource as select * from employee where emp_id=123;&lt;/P&gt; 
&lt;P&gt;2) I have a file that has 3 employee records say emp_id=111, 222, 333&lt;/P&gt; 
&lt;P&gt;I want to generate my view definition as&amp;nbsp;create or replace view v_mysource as select * from employee where emp_id=111 for the first incoming record, emp_id=222 for second incoming record etc&lt;/P&gt; 
&lt;P&gt;I am able to generate the view on the fly (i can see the view definition from sqlplus when the job is running)&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;but Talend all through the job is treating the view as&amp;nbsp;create or replace view v_mysource as select * from employee where emp_id=123;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can you think of a way to use the changed view definition. I am attaching my job flow for your better understanding.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dyn view.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9wk.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145145iE110D4B432641D9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9wk.png" alt="0683p000009M9wk.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;In this example if there are 10 source records my view definition changes 10 times but the SCD component is considering the view definition as it was at the start of the job... any suggestions please&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:05:05 GMT</pubDate>
    <dc:creator>tnewbie</dc:creator>
    <dc:date>2024-11-16T03:05:05Z</dc:date>
    <item>
      <title>Dynamic View as Target Table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230077#M20825</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt; 
&lt;P&gt;I want to use a View as the underlying table of an Oracle SCD2 component (tDBSCD) and the view is created on the fly...view definition is changing for each incoming record however my Talend job is considering the view definition that was at the start of the job and is not considering the view definition changes that are happening on the fly...have anyone worked on a similar situation. To explain more:&lt;/P&gt; 
&lt;P&gt;1) I had a view v_mysource --&amp;gt; create or replace view v_mysource as select * from employee where emp_id=123;&lt;/P&gt; 
&lt;P&gt;2) I have a file that has 3 employee records say emp_id=111, 222, 333&lt;/P&gt; 
&lt;P&gt;I want to generate my view definition as&amp;nbsp;create or replace view v_mysource as select * from employee where emp_id=111 for the first incoming record, emp_id=222 for second incoming record etc&lt;/P&gt; 
&lt;P&gt;I am able to generate the view on the fly (i can see the view definition from sqlplus when the job is running)&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;but Talend all through the job is treating the view as&amp;nbsp;create or replace view v_mysource as select * from employee where emp_id=123;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can you think of a way to use the changed view definition. I am attaching my job flow for your better understanding.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dyn view.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9wk.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145145iE110D4B432641D9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9wk.png" alt="0683p000009M9wk.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;In this example if there are 10 source records my view definition changes 10 times but the SCD component is considering the view definition as it was at the start of the job... any suggestions please&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230077#M20825</guid>
      <dc:creator>tnewbie</dc:creator>
      <dc:date>2024-11-16T03:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic View as Target Table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230078#M20826</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;Please share your thoughts on my below request...&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 14:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230078#M20826</guid>
      <dc:creator>tnewbie</dc:creator>
      <dc:date>2020-03-05T14:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic View as Target Table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230079#M20827</link>
      <description>You need to iterate record and create view dynamically based on current record before it is used. eg.
&lt;BR /&gt;.....tXMLMap--tFlowToiterte--tDBRow--oncomponentok--tFixedFlowInput--main--tMap---tOracleSCD.
&lt;BR /&gt;
&lt;BR /&gt;on tFixedFlowInput, generate the current record. 
&lt;BR /&gt;
&lt;BR /&gt;Can you try and let me know it fixes your issue?
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 06 Mar 2020 07:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230079#M20827</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-06T07:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic View as Target Table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230080#M20828</link>
      <description>&lt;P&gt;Thanks Shong...&lt;/P&gt;
&lt;P&gt;Unfortunately we can not use that approach because there are too many columns in each table and close to 34 tables, i am scared we will end up with tooo many context variables and too much of custom coding.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 16:15:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230080#M20828</guid>
      <dc:creator>tnewbie</dc:creator>
      <dc:date>2020-03-06T16:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic View as Target Table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230081#M20829</link>
      <description>&lt;P&gt;Shong,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have data coming in, in real time from Message queues and my biggest problem here is, i have 34 tables on which i need to do an SCD2 and 15 of these tables on an average will have close to 25 million records(record lengths are decently big too), so when i try to run my talend job, it tries to cache the target table before it can kick start the process and because of the volume Talend is not able to come out of the caching task even after an hour. So i thought of creating a view on the fly where view can fetch only the unique id related data and thus the volume will be very minimal and we can get rid of this caching approach, unfortunately Talend takes the view definition and view data as it was at the start of the job and the intermittent changes happening in the view definition doesn't seem to reflect during the process.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;From the tool perspective can you help me understand if there is a way to stop caching SCD table at the start of the job.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 16:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230081#M20829</guid>
      <dc:creator>tnewbie</dc:creator>
      <dc:date>2020-03-06T16:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic View as Target Table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230082#M20830</link>
      <description>&lt;P&gt;This is why you need to iterate over the incoming data. When you iterate, it reloads the look up on the tMap. So you were to follow Shong's example, it should work for you. I'm not sure why you are concerned about Context Variables, since I don't believe you would need any.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 17:50:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230082#M20830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-06T17:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic View as Target Table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230083#M20831</link>
      <description>&lt;P&gt;Thanks rhall...&lt;/P&gt;
&lt;P&gt;May be i am wrong...to the best i know, i can generate record using FixedFlowInput in 3 three ways - 1. values hardcoded, 2. using context variables 3. using global variables like ((String)globalMap.get("row1.column_value"))&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to Talend, so please help me&amp;nbsp;if there any other way to generate a record.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 18:30:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230083#M20831</guid>
      <dc:creator>tnewbie</dc:creator>
      <dc:date>2020-03-06T18:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic View as Target Table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230084#M20832</link>
      <description>&lt;P&gt;The tFlowToIterate creates globalMap key/value pairs for each column in a row. So when you use the tFlowToIterate it will create your row in the globalMap for the lifetime of the iteration. Your understanding of the key naming convention of the tFlowToIterate in your post above is absolutely correct.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Mar 2020 00:21:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-View-as-Target-Table/m-p/2230084#M20832</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-09T00:21:30Z</dc:date>
    </item>
  </channel>
</rss>

