Optimal Reconciliation of CASE Partitioning Expressions Based On Updatable Current Date and Timestamp - Analytics Database - Teradata Vantage

SQL Data Definition Language Detailed Topics

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1184
lifecycle
latest
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.