Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
alter table <tablename> exchange partition (<(partial)?partition spec>) with table <tablename> partition (<(partial)?partition spec>)

The semantics of the above statement is that the data between the above partitions are switched. Both the tables should have the same schema. The operation fails in the presence of an index. Consider the following examples:

...