SET TABLE STATUS
Description
This statement is used to set the state of the specified table. Only supports OLAP tables.
This command is currently only used to manually set the OLAP table state to the specified state, allowing some jobs that are stuck by the table state to continue running.
grammar:
ADMIN SET TABLE table_name STATUS
PROPERTIES ("key" = "value", ...);
The following properties are currently supported:
- "state":Required. Specifying a target state then the state of the OLAP table will change to this state.
The current target states include:
- NORMAL
- ROLLUP
- SCHEMA_CHANGE
- BACKUP
- RESTORE
- WAITING_STABLE
If the current state of the table is already the specified state, it will be ignored.
Note: This command is generally only used for emergency fault repair, please proceed with caution.
Examples
- Set the state of table tbl1 to NORMAL.
admin set table tbl1 status properties("state" = "NORMAL");
- Set the state of table tbl2 to SCHEMA_CHANGE
admin set table test_set_table_status status properties("state" = "SCHEMA_CHANGE");
Keywords
ADMIN, SET, TABLE, STATUS