catalog_trash_expire_second (1 day by default).
Data deleted by using TRUNCATE TABLE cannot be recovered.
Syntax
-
Recover a database.
-
Recover a table.
-
Recover a partition.
- This command can only recover metadata deleted some time ago (1 day by default). You can change the duration by adjusting the FE parameter
catalog_trash_expire_second. - If the metadata is deleted with identical metadata created, the previous one will not be recovered.
Examples
-
Recover database
example_db. -
Recover table
example_tbl. -
Recover partition
p1in theexample_tbltable.