Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
tommyl
Creator
Creator

Incremental Load with table updates

Hello experts,

I need your help about incremental load.

My DB table is:

idcontentxdate
1A2020-11-26 10:12:45 AM

 

i have an initial QVD load as below:

 

LIB CONNECT TO 'ABC Hive';
Source:
LOAD id,
content,
xdate;
SQL SELECT id,
content,
xdate
FROM HIVE.`lap_uat`.`test_qvd`;
store Source into [lib://QDF/XXX/UAT/test.qvd];

exit script;

 

And my incremental load script is as below:

 

LIB CONNECT TO 'ABC Hive';


test:
LOAD id,
content,
xdate;
SQL SELECT id,
content,
xdate
FROM HIVE.`lap_uat`.`test_qvd`;
Where xdate>'$(vLastExecTime)'; 
left join
LOAD *
FROM [lib://QDF_LOYALTY/ENR/UAT/test.qvd]
(qvd);
where not exists (id);
store test into [lib://QDF/XXX/UAT/test.qvd];

exit script;

 

As the table is like below i cannot load the data the newly added one cannot be loaded:

table.PNG

I checked all solved incremental load threads here, but I dont understand the problem. Could you please help me on that? 

Regards,

Tommy,

 

2 Replies
HeshamKhja1
Partner - Creator II
Partner - Creator II

How are you calculating the vLastExecTime variable?

tommyl
Creator
Creator
Author

Hi,

in every load, i stored the execution time in a variable at the end of the load script.

I fixed the problem though. It was a general time format problem.

thanks,