You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into a case where I want to do incremental reloading based on a timestamp only, i.e. give me all the records newer than the max timestamp of the previous load. Several records may have the exact same timestamp. Using the timestamp as primary key as well as modification field therefore doesn't work.
I propose a conditional WHERE clause based on the existence of the primary key in the arguments passed to the UpdateQvd routine
WHEN Len('$(_vPrimaryKey)')>0 SET _qvctemp.vWHERE = WHERE NOT exists($(_qvctemp.ExistsExpr));
REM If incremental reload, load previous data and concatenate to data just read.;
IF $(_vQvdExists) THEN
// Concatenate is required if adding fields
CONCATENATE ([$(_vTablename)])
LOAD * FROM $(_vQvdFile)
$(_qvctemp.vWHERE)
The text was updated successfully, but these errors were encountered:
I ran into a case where I want to do incremental reloading based on a timestamp only, i.e. give me all the records newer than the max timestamp of the previous load. Several records may have the exact same timestamp. Using the timestamp as primary key as well as modification field therefore doesn't work.
I propose a conditional WHERE clause based on the existence of the primary key in the arguments passed to the UpdateQvd routine
WHEN Len('$(_vPrimaryKey)')>0 SET _qvctemp.vWHERE = WHERE NOT exists($(_qvctemp.ExistsExpr));
REM If incremental reload, load previous data and concatenate to data just read.;
IF $(_vQvdExists) THEN
// Concatenate is required if adding fields
CONCATENATE ([$(_vTablename)])
LOAD * FROM $(_vQvdFile)
$(_qvctemp.vWHERE)
The text was updated successfully, but these errors were encountered: