ALTER TABLE TO CURRENT Processing - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2021-01-23
dita:mapPath
wgr1555383704548.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1144
lifecycle
previous
Product Category
Teradata Vantage™

During ALTER TABLE TO CURRENT processing, if the starting expression with the newly resolved DATE, CURRENT_DATE, or CURRENT_TIMESTAMP value does not fall on a partition boundary, Vantage must scan all of the rows before repartitioning the rows based on the new partitioning expression. Column partitioned tables must be empty before using ALTER TABLE TO CURRENT.

For an ALTER TABLE TO CURRENT operation where an all-row scan is unnecessary, the table can contain data.