Syntax
Parameters
table_name: The name of the table to which the partition belongs.partition_name: The name of the partition. You need to specify a partition using eitherpartition_nameorpartition_id. For non-partitioned tables,partition_nameis the same as the table name.partition_id: The ID of the partition. You need to specify a partition using eitherpartition_nameorpartition_id. For tables with the random bucketing strategy, you can only usepartition_idto specify the partition.version: The version you want to set for the partition.
Examples
-
Set the version of the non-partitioned table
t1to10. -
Set the version of partition
p1in tablet2to10. -
Set the version of the partition whose ID is
123456to10.t3is a table with the random bucketing strategy.