QuestionQ7

VerifiedDebugging and Deploying

A Delta Lake table was created by using the query below:

Question Image

After noticing that the original query contained a typographical error, the following code was run:

ALTER TABLE prod.sales_by_stor RENAME TO prod.sales_by_store

What result occurs after the second command runs?

Explanation

Renaming an external Delta table updates its table metadata entry in the metastore. The specified storage location, its data files, and the existing Delta transaction log remain unchanged; a rename is not a data movement or Delta-log transaction.

Learn more

Community Discussion

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