Example: Verifying the Ending Bound of a Transaction Time Column - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

The following example uses IS [NOT] UNTIL_CLOSED in the PPI partitioning expression to check whether the ending bound of a transaction time column is UNTIL_CLOSED.

   CREATE TABLE TESTUC
     (A  INTEGER,
      B  PERIOD (TIMESTAMP (6) WITH TIME ZONE) NOT NULL AS TRANSACTIONTIME,
      C INTEGER)
     PRIMARY INDEX (A)
     PARTITION BY
        CASE_N (END (b) IS UNTIL_CHANGED,
                END (b) IS NOT UNTIL_CHANGED, UNKNOWN);