Optimal Reconciliation of CASE Partitioning Expressions Based On Updatable Current Date and Timestamp - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
imq1591724555718.ditamap
dita:ditavalPath
imq1591724555718.ditaval
dita:id
B035-1184
lifecycle
previous
Product Category
Teradata Vantage™

The following case applies to optimized uses of CASE partitioning expressions in a partitioning expression.

If you specify either a DATE, CURRENT_DATE, or a CURRENT_TIMESTAMP function in a partitioning expression CASE expression, then Vantage must scan and reconciles all of the rows in the specified table or join index when you update their values using an ALTER TABLE TO CURRENT statement.

Because of this, the best practice is not to specify DATE, CURRENT_DATE, or CURRENT_TIMESTAMP functions in the CASE expressions you specify in a partitioning expression.