UNDROP Command Reference
Description
Restores deleted Singdata Lakehouse data objects. UNDROP relies on the Time Travel mechanism and can only restore objects that were deleted within the data retention period.
Syntax
Supported Object Types
| Object Type | Recovery Syntax | Prerequisites |
|---|---|---|
| Regular Table | UNDROP TABLE <name> | Within the data_retention_days retention period |
| Dynamic Table | UNDROP TABLE <name> | Within the data_retention_days retention period |
| Materialized View | UNDROP TABLE <name> | Within the data_retention_days retention period |
Objects such as views, external tables, schemas, and VClusters do not support UNDROP and cannot be restored via this command after being dropped.
Notes
- If an object with the same name already exists,
UNDROPwill error. You must rename or drop the existing object first. - Objects beyond the Time Travel retention period cannot be restored. The default retention period is 1 day, adjustable via the
data_retention_daysproperty. UNDROPrestores the object definition and data, but does not restore views or dynamic tables that depend on the object.
