<?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: Incremental load in qlikview from hive in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663466#M1082331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the Debug option, or you could trace out the SQL on reload, whichever way is easiest really, with the traced SQL you should spot any anomalies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem we experience is getting the max ID/timestamp from the QVD when we are incrementally updating it as we have to pull in all 30million records, as the performance is pretty bad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve this we shard QVDs with records greater than 2 million rows into QVDs with 1 million rows in each one, so for a 30 million record QVD file we now have 30 x 1 million records in each one, this makes it quicker to get the max ID from 1 million records rather than 30 million.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each table that we pull in has its own QVS file which is used within a loop that works out what sort of QVD we are building.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Jun 2014 16:31:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-06-26T16:31:13Z</dc:date>
    <item>
      <title>Incremental load in qlikview from hive</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663463#M1082328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do incremental data load process in qlikview and store the data into qvd and&amp;nbsp; source of data is hive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am following the below approach for delta load,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal;"&gt;&lt;LI&gt;Get the latest modified date from QVD and save it in a variable ex: Modifieddate.&lt;/LI&gt;&lt;LI&gt;Get records from Hive whose modified date is greater than Modifieddate,&lt;STRONG&gt; &lt;/STRONG&gt;i am using where condition&lt;/LI&gt;&lt;LI&gt;Get new records from Hive whose primary key not exist in QVD.&lt;/LI&gt;&lt;LI&gt;Loading the fetched records from hive to qvd. &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.1. If the primary key already exist, update the record&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4.2. If the primary key doesn’t exist, insert the record &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the issue i am facing here is the hive query is not able to fetch records from according to the where condition,I have checked the same query from hive CLI it is working fine and I have checked static query from Qlikview to hive it is also working fine. The issue is occurring when I am using variable substitution in query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 14:34:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663463#M1082328</guid>
      <dc:creator />
      <dc:date>2014-06-26T14:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load in qlikview from hive</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663464#M1082329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess is that you have to adjust the date format from the variable into an acceptable SQL date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the Script Debugger to see exactly what is the SQL statement that QV is sending to Hive. When you are in the Script Editor, click the "Debug" button, and you can go step by step in the script reload.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 14:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663464#M1082329</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2014-06-26T14:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load in qlikview from hive</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663465#M1082330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm just taking a guess here... Have you tried something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE data &amp;gt;= '$(myVariable)' ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 15:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663465#M1082330</guid>
      <dc:creator>Brice-SACCUCCI</dc:creator>
      <dc:date>2014-06-26T15:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load in qlikview from hive</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663466#M1082331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the Debug option, or you could trace out the SQL on reload, whichever way is easiest really, with the traced SQL you should spot any anomalies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem we experience is getting the max ID/timestamp from the QVD when we are incrementally updating it as we have to pull in all 30million records, as the performance is pretty bad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To solve this we shard QVDs with records greater than 2 million rows into QVDs with 1 million rows in each one, so for a 30 million record QVD file we now have 30 x 1 million records in each one, this makes it quicker to get the max ID from 1 million records rather than 30 million.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each table that we pull in has its own QVS file which is used within a loop that works out what sort of QVD we are building.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2014 16:31:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663466#M1082331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-26T16:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load in qlikview from hive</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663467#M1082332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;WHERE datefiled &amp;gt;= '$(myVariable)' &lt;/SPAN&gt; approach for filtering data from hive tables.&lt;/P&gt;&lt;P&gt;But the problem&amp;nbsp; i am getting is the date field in the hive table is in string format ,so&amp;nbsp; when i am debugging the script the variable is showing null,as it is not able to compare the records from qvd with hive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Could anyone please help on date conversion from sting to date and timestamp to date,because&amp;nbsp; i need to compare records based on date and not timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 09:48:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663467#M1082332</guid>
      <dc:creator />
      <dc:date>2014-06-27T09:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load in qlikview from hive</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663468#M1082333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whats the date string, can you give example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 10:23:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663468#M1082333</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-27T10:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load in qlikview from hive</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663469#M1082334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;when i am debugging the script the variable is showing null&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the code where you define the content of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;myVariable?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 12:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663469#M1082334</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2014-06-27T12:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load in qlikview from hive</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663470#M1082335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;LOAD date(max(eventdate),'YYYY-MM-DD') as notemaxdate&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;FROM QvdFile (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vNoteMaxDate = peek('notemaxdate');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM HIVE.qvdb.eventstable&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE&amp;nbsp; eventdate &amp;gt;= '$(vNoteMaxDate)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vNoteMaxDate is a variable which contains maximum eventdate from qvd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eventdate is the date field in hive table whose data type is string and format is DD/MM/YYYY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while debugging i am getting like&amp;nbsp;&amp;nbsp; WHERE&amp;nbsp; eventdate &amp;gt;= '';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 13:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663470#M1082335</guid>
      <dc:creator />
      <dc:date>2014-06-27T13:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load in qlikview from hive</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663471#M1082336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hi Goli&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Looking at your code, the syntax of your peek function is incorrect,&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LET &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vNoteMaxDate &lt;/SPAN&gt;= Peek('&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;notemaxdate&lt;/SPAN&gt;', -1, 'xx--table-name-xx');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hope that works&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 13:49:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663471#M1082336</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-27T13:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load in qlikview from hive</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663472#M1082337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the result of:&lt;/P&gt;&lt;TABLE style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;LOAD date(max(eventdate),'YYYY-MM-DD') as notemaxdate&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM QvdFile (qvd);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Is it correctly generating the table with the max date?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 14:34:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663472#M1082337</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2014-06-27T14:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load in qlikview from hive</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663473#M1082344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I debugged it ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="border: 0px; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;LOAD date(max(eventdate),'YYYY-MM-DD') as notemaxdate&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;FROM QvdFile (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;LET vNoteMaxDate = peek('notemaxdate');&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;the value of vNoteMaxDate is showing as null &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;and eventdate values in qvd are something like 2010-07-10-05.22.27.12142, 2011-05-14-06.636490&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 14:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663473#M1082344</guid>
      <dc:creator />
      <dc:date>2014-06-27T14:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load in qlikview from hive</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663474#M1082345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What did you do to resolve this issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please post you findings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;DaveT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2014 14:47:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663474#M1082345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-27T14:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load in qlikview from hive</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663475#M1082346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the eventdate is a string in the database, I guess you have to convert it to a date before using the max() function. So, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Max(Date#(eventdate, 'YYYY-MM-DD-h.mm.ss.fffff')) AS notemaxdate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jun 2014 17:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663475#M1082346</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2014-06-30T17:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load in qlikview from hive</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663476#M1082347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.I resolved the issue ,i am taking the timestamp in in hive in 2010-05-15-05.12.48.628010 format.&lt;/P&gt;&lt;P&gt;I used below condition to get maximum record from QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF $(vQvdExists) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; maxdateTab:&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Get the max date from this QVD for use in incremental SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD date(max(moddate),'YYYY-MM-DD') as maxdate&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM $(vQvdFile) (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vIncrementalExpression = peek('maxdate');&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.I used below script in compare date in hive with date from QVD and fetch new records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vTableName):&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;IF $(vQvdExists) THEN&lt;/P&gt;&lt;P&gt;SQL SELECT id,moddate&lt;/P&gt;&lt;P&gt;FROM HIVE.qvdb.test &lt;/P&gt;&lt;P&gt;WHERE date(moddate,'YYYY-MM-DD') &amp;gt; '$(vIncrementalExpression)';&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;SQL SELECT id,moddate&lt;/P&gt;&lt;P&gt;FROM HIVE.qvdb.test;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To concatenate the newly fetched records from hive to qvd, i am using the below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;// If incremental reload was , load previous data and concatenate to data just read.&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF $(vQvdExists) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Use CONCATENATE in case we've added any new fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp; CONCATENATE ($(vTableName)) LOAD * FROM $(vQvdFile) (qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE NOT exists($(vPK)) // Load only QVD rows that were not already loaded in the data load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the above script i am able to load only the records with new primary key or the records with updated timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jul 2014 07:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663476#M1082347</guid>
      <dc:creator />
      <dc:date>2014-07-02T07:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load in qlikview from hive</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663477#M1082348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.I resolved the issue ,i am taking the timestamp in in hive in 2010-05-15-05.12.48.628010 format.&lt;/P&gt;&lt;P&gt;I used below condition to get maximum record from QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF $(vQvdExists) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; maxdateTab:&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Get the max date from this QVD for use in incremental SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD date(max(moddate),'YYYY-MM-DD') as maxdate&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM $(vQvdFile) (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vIncrementalExpression = peek('maxdate');&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.I used below script in compare date in hive with date from QVD and fetch new records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vTableName):&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;IF $(vQvdExists) THEN&lt;/P&gt;&lt;P&gt;SQL SELECT id,moddate&lt;/P&gt;&lt;P&gt;FROM HIVE.qvdb.test &lt;/P&gt;&lt;P&gt;WHERE date(moddate,'YYYY-MM-DD') &amp;gt; '$(vIncrementalExpression)';&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;SQL SELECT id,moddate&lt;/P&gt;&lt;P&gt;FROM HIVE.qvdb.test;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To concatenate the newly fetched records from hive to qvd, i am using the below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;// If incremental reload was , load previous data and concatenate to data just read.&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF $(vQvdExists) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Use CONCATENATE in case we've added any new fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp; CONCATENATE ($(vTableName)) LOAD * FROM $(vQvdFile) (qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE NOT exists($(vPK)) // Load only QVD rows that were not already loaded in the data load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the above script i am able to load only the records with new primary key or the records with updated timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 14:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663477#M1082348</guid>
      <dc:creator />
      <dc:date>2014-07-07T14:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Incremental load in qlikview from hive</title>
      <link>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663478#M1082349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.I resolved the issue ,i am taking the timestamp in in hive in 2010-05-15-05.12.48.628010 format.&lt;/P&gt;&lt;P&gt;I used below condition to get maximum record from QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF $(vQvdExists) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; maxdateTab:&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Get the max date from this QVD for use in incremental SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD date(max(moddate),'YYYY-MM-DD') as maxdate&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM $(vQvdFile) (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vIncrementalExpression = peek('maxdate');&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.I used below script in compare date in hive with date from QVD and fetch new records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vTableName):&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;IF $(vQvdExists) THEN&lt;/P&gt;&lt;P&gt;SQL SELECT id,moddate&lt;/P&gt;&lt;P&gt;FROM HIVE.qvdb.test &lt;/P&gt;&lt;P&gt;WHERE date(moddate,'YYYY-MM-DD') &amp;gt; '$(vIncrementalExpression)';&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;SQL SELECT id,moddate&lt;/P&gt;&lt;P&gt;FROM HIVE.qvdb.test;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To concatenate the newly fetched records from hive to qvd, i am using the below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Directory;&lt;/P&gt;&lt;P&gt;// If incremental reload was , load previous data and concatenate to data just read.&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF $(vQvdExists) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Use CONCATENATE in case we've added any new fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp; CONCATENATE ($(vTableName)) LOAD * FROM $(vQvdFile) (qvd);&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE NOT exists($(vPK)) // Load only QVD rows that were not already loaded in the data load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the above script i am able to load only the records with new primary key or the records with updated timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 14:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Incremental-load-in-qlikview-from-hive/m-p/663478#M1082349</guid>
      <dc:creator />
      <dc:date>2014-07-07T14:12:34Z</dc:date>
    </item>
  </channel>
</rss>

