Interview practice question
Moving a partitioned table to liquid clustering
Data Engineering · Databricks · Intermediate
You want to move a large partitioned and Z-ordered Delta table to liquid clustering. How do you do it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Liquid clustering isn't compatible with partitioning or Z-order on the same table.
- Create a new table with CLUSTER BY and copy data (CTAS or deep clone with rewrite).
- Choose keys from common filters.
- Run OPTIMIZE to cluster data.
- Switch readers and writers, then retire the old table.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.