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

Teradata Vantage™ - Temporal Table Support

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1182-171K
Language
English (United States)

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.