Temporal Tables - Parallel Transporter

Teradata Parallel Transporter Reference

Product
Parallel Transporter
Release Number
16.10
Published
July 2017
Language
English (United States)
Last Update
2018-06-28
dita:mapPath
egk1499705348414.ditamap
dita:ditavalPath
Audience_PDF_include.ditaval
dita:id
B035-2436
lifecycle
previous
Product Category
Teradata Tools and Utilities

When using the Stream operator to load data into temporal tables, the temporal qualifiers, such as CURRENT VALIDTIME and SEQUENCED VALIDTIME, must precede the DML statements, as in the following example.

APPLY
('SEQUENCED VALIDTIME INSERT INTO <target table> ... ;')
 TO OPERATOR (STREAM_OPERATOR)
SELECT * FROM OPERATOR (<producer operator>);

When using an atomic Upsert, the temporal qualifier must precede the UPDATE statement, not the INSERT statement, as in the following example.

APPLY
('SEQUENCED VALIDTIME UPDATE <target table> SET ... WHERE ... ;',
 'INSERT INTO <target table> ... ;')
 INSERT FOR MISSING UPDATE ROWS
 TO OPERATOR (STREAM_OPERATOR)
SELECT * FROM OPERATOR (<producer operator>);