The multi-versioning feature is to be deprecated and is not recommended.
After the multiversion function is enabled, you can run the SHOW HISTORY command to view the backup data of a table. For details about the syntax for enabling or disabling the multiversion function, see Enabling or Disabling Data Multi-Versioning (Deprecated, Not Recommended).
Currently, the multiversion function supports only OBS tables created using the Hive syntax. For details about the syntax for creating a table, see Creating an OBS Table Using the Hive Syntax.
SHOW HISTORY FOR TABLE [db_name.]table_name;
SHOW HISTORY FOR TABLE [db_name.]table_name PARTITION (column = value, ...);
Parameter |
Description |
|---|---|
db_name |
Database name, which consists of letters, digits, and underscores (_). The value cannot contain only digits or start with a digit or underscore (_). |
table_name |
Table name |
column |
Partition column name |
value |
Value corresponding to the partition column name |
Currently, the multiversion function supports only OBS tables created using the Hive syntax. For details about the syntax for creating a table, see Creating an OBS Table Using the Hive Syntax.
1 | SHOW HISTORY FOR TABLE test_table; |
1 | SHOW HISTORY FOR TABLE test_table PARTITION (dt='2021-07-27'); |