17.05 - Row Partitioning Transaction-Time Tables - Teradata Database

Teradata Vantage™ - Temporal Table Support

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
17.05
created_date
June 2020
category
Programming Reference
featnum
B035-1182-170K

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.