15.00 - Rules for Reconciliation Optimization of CASE Partitioning Expressions in Based On Updatable Current Date and Updatable Current Timestamp - Teradata Database

Teradata Database SQL Data Definition Language Detailed Topics

Product
Teradata Database
Release Number
15.00
Content Type
Programming Reference
Publication ID
B035-1184-015K
Language
English (United States)

Rules for Reconciliation Optimization of CASE Partitioning Expressions in Based On Updatable Current Date and Updatable Current Timestamp

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 Teradata Database 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 request.

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.