Row Partitioning Transaction-Time Tables - Advanced SQL Engine - Teradata Database

Temporal Table Support

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
cjo1556732840654.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1182
lifecycle
previous
Product Category
Teradata Vantage™

The following partitioning expression is recommended for a transaction-time table, where ttcolumn represents the transaction-time column.

   PARTITION BY CASE_N (END(ttcolumn) >= CURRENT_TIMESTAMP, NO CASE)

By using the recommended physical partitioning for a transaction-time table, the physical partitions are as follows:

  1. The current partition has rows that are or were open as of the last resolved CURRENT_TIMESTAMP value for the partitioning expression.
  2. The history partition has rows that were closed as of the last resolved CURRENT_TIMESTAMP value for the partitioning expression.