<?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: Process NUM along with from and to column values every i'th record in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Process-NUM-along-with-from-and-to-column-values-every-i-th/m-p/2272729#M49930</link>
    <description>&lt;P&gt;Hi Abhishek,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry if it was confusing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to develop a generic ELT job to process all the&amp;nbsp;rows in a table. This job should process splitting the&amp;nbsp;rows based on primary key&amp;nbsp;in multiple iterations.&lt;/P&gt;
&lt;P&gt;For example if I have records whose primary key value range from 1 to 3012543, I wanted to process&amp;nbsp;every 1 million rows in a iteration.&lt;/P&gt;
&lt;P&gt;Which means there would be 4 iterations.&lt;/P&gt;
&lt;P&gt;1st iteration - select where clause will have id &amp;gt;=1 and id &amp;lt; 1000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2nd&amp;nbsp;iteration - select where clause will have id &amp;gt;=1000000 and id &amp;lt; 2000000&lt;/P&gt;
&lt;P&gt;3rd&amp;nbsp;iteration - select where clause will have id &amp;gt;=2000000 and id &amp;lt; 3000000&lt;/P&gt;
&lt;P&gt;4th&amp;nbsp;iteration - select where clause will have id &amp;gt;=3000000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to have a generic tELTOracleMap for all the iterations?&lt;/P&gt;
&lt;P&gt;Hope this is clear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2019 16:24:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-21T16:24:06Z</dc:date>
    <item>
      <title>Process NUM along with from and to column values every i'th record</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Process-NUM-along-with-from-and-to-column-values-every-i-th/m-p/2272727#M49928</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I wanted output like below:&lt;/P&gt; 
&lt;PRE&gt;1,1,1000000
2,1000000,2000000
3,2000000,3000000
4,3000000&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Using tDBInput and tJavaFlex I am able to generate the below:&lt;/P&gt; 
&lt;P&gt;1,1,1000000 2,1000000,2000000 3,2000000,3000000.&lt;/P&gt; 
&lt;P&gt;How to get the last row.&lt;/P&gt; 
&lt;P&gt;tDBInput:&lt;/P&gt; 
&lt;P&gt;"select id from&lt;/P&gt; 
&lt;P&gt;(select id, row_number() over (order by id) as RowNumber&amp;nbsp;from table) expr1&lt;BR /&gt;where mod(expr1.RowNumber, 1000000) = 0&lt;BR /&gt;"&lt;/P&gt; 
&lt;P&gt;tJavaFlex:&lt;BR /&gt;Start code:&lt;BR /&gt;// start part of your Java code&lt;BR /&gt;globalMap.put("startID", "1");&lt;BR /&gt;int cntProcess=1;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Main code:&lt;BR /&gt;row2.processID = String.valueOf(cntProcess);&lt;BR /&gt;row2.startID = (String)globalMap.get("startID");&lt;BR /&gt;row2.endID = row1.maxID.toString();&lt;BR /&gt;globalMap.put("startID", row1.maxID.toString());&lt;BR /&gt;cntProcess++;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;End code:&lt;BR /&gt;row2.startID = row1.maxID.toString();&lt;BR /&gt;row2.endID = row1.maxID.toString();&lt;BR /&gt;row2.threadID = String.valueOf(cntProcess);&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I wanted this to dynamically prepare the query using &amp;gt;= and &amp;lt;, like below:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;sub-process 1 : select * from&amp;nbsp;table where id &amp;gt;= 1 and id &amp;lt;&amp;nbsp;1000000;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;sub-process 2 : select * from&amp;nbsp;table where id &amp;gt;= 1000000 and id &amp;lt;&amp;nbsp;2000000;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;sub-process 3 : select * from&amp;nbsp;table where id &amp;gt;= 2000000 and id &amp;lt;&amp;nbsp;3000000;&lt;/P&gt; 
&lt;P&gt;sub-process 4 : select * from&amp;nbsp;table where id &amp;gt;= 3000000;&lt;/P&gt; 
&lt;P&gt;How to achieve this, as I wanted to run the sub-process independently.&lt;/P&gt; 
&lt;P&gt;Thanks.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2019 15:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Process-NUM-along-with-from-and-to-column-values-every-i-th/m-p/2272727#M49928</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-19T15:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Process NUM along with from and to column values every i'th record</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Process-NUM-along-with-from-and-to-column-values-every-i-th/m-p/2272728#M49929</link>
      <description>&lt;P&gt;Your request is little confusing.&lt;/P&gt;&lt;P&gt;can you confirm your INPUT is&lt;/P&gt;&lt;PRE&gt;1,1,1000000
2,1000000,2000000
3,2000000,3000000
4,3000000&lt;/PRE&gt;&lt;P&gt;Expected Output :&lt;/P&gt;&lt;P&gt;you want to run below sql for each record&amp;nbsp; record in input(Iteration )&lt;/P&gt;&lt;P&gt;select * from&amp;nbsp;table where id &amp;gt;= &lt;EM&gt;&lt;STRONG&gt;column2&lt;/STRONG&gt; &lt;/EM&gt;and id &amp;lt; &lt;EM&gt;&lt;STRONG&gt;column3&lt;/STRONG&gt;&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 12:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Process-NUM-along-with-from-and-to-column-values-every-i-th/m-p/2272728#M49929</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-03-21T12:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Process NUM along with from and to column values every i'th record</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Process-NUM-along-with-from-and-to-column-values-every-i-th/m-p/2272729#M49930</link>
      <description>&lt;P&gt;Hi Abhishek,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry if it was confusing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to develop a generic ELT job to process all the&amp;nbsp;rows in a table. This job should process splitting the&amp;nbsp;rows based on primary key&amp;nbsp;in multiple iterations.&lt;/P&gt;
&lt;P&gt;For example if I have records whose primary key value range from 1 to 3012543, I wanted to process&amp;nbsp;every 1 million rows in a iteration.&lt;/P&gt;
&lt;P&gt;Which means there would be 4 iterations.&lt;/P&gt;
&lt;P&gt;1st iteration - select where clause will have id &amp;gt;=1 and id &amp;lt; 1000000&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2nd&amp;nbsp;iteration - select where clause will have id &amp;gt;=1000000 and id &amp;lt; 2000000&lt;/P&gt;
&lt;P&gt;3rd&amp;nbsp;iteration - select where clause will have id &amp;gt;=2000000 and id &amp;lt; 3000000&lt;/P&gt;
&lt;P&gt;4th&amp;nbsp;iteration - select where clause will have id &amp;gt;=3000000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to have a generic tELTOracleMap for all the iterations?&lt;/P&gt;
&lt;P&gt;Hope this is clear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 16:24:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Process-NUM-along-with-from-and-to-column-values-every-i-th/m-p/2272729#M49930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-21T16:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Process NUM along with from and to column values every i'th record</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Process-NUM-along-with-from-and-to-column-values-every-i-th/m-p/2272730#M49931</link>
      <description>ok its clear.&lt;BR /&gt;Wanted to know why using tELTOracleMap ?&lt;BR /&gt;What do you need to do after you select data from table?</description>
      <pubDate>Thu, 21 Mar 2019 20:14:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Process-NUM-along-with-from-and-to-column-values-every-i-th/m-p/2272730#M49931</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-03-21T20:14:38Z</dc:date>
    </item>
  </channel>
</rss>

