Optimal Reconciliation of CASE Partitioning Expressions Based on Updatable Current Date and Timestamp - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530

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.

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