QuestionQ51

VerifiedManaging Data

A data analyst is trying to drop a table named my_table. The analyst wants to remove all table metadata and data.

They run the following command:

DROP TABLE IF EXISTS my_table;  

Although the object no longer appears when they run SHOW TABLES, the data files still remain.

Which of the following explains why the metadata files were deleted but the data files still exist?

Explanation

Dropping an external table removes its associated metadata from the metastore but does not delete its underlying data files, because the data lifecycle remains externally managed. Databricks DROP TABLE documentation

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!