docs/en/sql-reference/sql-statements/backup_restore/RECOVER.md
Recovers a database, table, or partition that was dropped by using the DROP command. The dropped database, table, or partition can be recovered within the period specified by the FE parameter catalog_trash_expire_second (1 day by default).
Data deleted by using TRUNCATE TABLE cannot be recovered.
Recover a database.
RECOVER DATABASE <db_name>
Recover a table.
RECOVER TABLE [<db_name>.]<table_name>
Recover a partition.
RECOVER PARTITION <partition_name> FROM [<db_name>.]<table_name>
Note:
catalog_trash_expire_second.Recover database example_db.
RECOVER DATABASE example_db;
Recover table example_tbl.
RECOVER TABLE example_db.example_tbl;
Recover partition p1 in the example_tbl table.
RECOVER PARTITION p1 FROM example_tbl;