Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: utterly trivial edits – removed some leading spaces

The EXCHANGE PARTITION command will move a partition from a source table to target table and alter each table's metadata.  The Exchange Partition feature is implemented as part of HIVE-4095Exchanging multiple partitions is supported in Hive versions 1.2.2, 1.3.0, and 2.0.0+ as part of HIVE-11745.

 When the command is executed, the source table's partition folder in HDFS will be renamed to move it to the destination table's partition folder.  The Hive metastore will be updated to change the metadata of the source and destination tables accordingly.

 The partition specification can be fully or partially specified.

 See Language Manual DDL for additional information on the Exchange Partition feature.

...