QuestionQ235

VerifiedDebugging and Deploying

A Delta Lake table was created with the following query:

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 a table updates its name in the metastore. The external Delta table continues to reference the same specified storage location, including its existing Delta transaction log; no files or log are recreated.

Learn more

Community Discussion

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