15.00 - Rules for Modifying Populated and Unpopulated Tables and Join Indexes - Teradata Database

Teradata Database SQL Data Definition Language Detailed Topics

prodname
Teradata Database
vrm_release
15.00
category
Programming Reference
featnum
B035-1184-015K

Rules for Modifying Populated and Unpopulated Tables and Join Indexes

The following rules apply to altering the partitioning of a populated table or join index.

  • You cannot alter a populated partitioned table to have no partitioning.
  • Otherwise, Teradata Database aborts the request and returns an error to the requestor.

  • You cannot alter a populated unpartitioned table to have partitioning.
  • Otherwise, Teradata Database aborts the request and returns an error to the requestor.

  • You cannot alter the partitioning of a populated partitioned table to have a new partitioning using a PARTITION BY clause.
  • Otherwise, Teradata Database aborts the request and returns an error to the requestor.

  • You cannot alter the partitioning of a populated partitioned table to have a new partitioning with DROP RANGE clauses, ADD RANGE clauses, or both unless the new partitioning expressions are defined using DROP RANGE[#Ln] and ADD RANGE[#Ln] clauses that do not drop ranges other than from the beginning or end of the range sequence with at least one remaining range, and then does not add ranges between the resulting beginning and end of the ranges.
  • If the table has multilevel partitioning and the modification of a partitioning expression includes dropping the NO RANGE [OR UNKNOWN} or UNKNOWN partitions, the partitioning expression must not have been modified previously.

    The resulting number of partitions for a level must be between 1 and the maximum defined for that level.