Updating Partitioned Table Data (Only OBS Tables Supported)

Function

This statement is used to update the partition information about a table in the Metastore.

Syntax

1
MSCK REPAIR TABLE table_name;

Or

ALTER TABLE table_name RECOVER PARTITIONS;

Keywords

Parameters

Table 1 Parameters

Parameter

Description

table_name

Table name

partition_specs

Partition fields

obs_path

OBS path

Precautions

Example

Run the following statements to update the partition information about table ptable in the Metastore:

1
MSCK REPAIR TABLE ptable;

Or

ALTER TABLE ptable RECOVER PARTITIONS;