A retailer has a Unity Catalog managed Delta table named sales.orders that holds about 120 TB of data. The table was created with PARTITIONED BY (region).
Most analyst queries now filter on the order_date column instead of region. The data engineering team has decided to keep traditional partitioning but make order_date the partition column.
Complete the sentence to describe what the team must do.
To change the partition column of sales.orders from region to order_date, the team must .
- Blank 1: rewrite the entire table with order_date as the partition column (correct answer)
Correct: changing the traditional partitioning scheme requires rewriting the entire table. ALTER TABLE ... CLUSTER BY sets liquid clustering keys rather than changing traditional partition columns. OPTIMIZE ... FULL reclusters existing data in a liquid-clustered table; it does not change traditional partition columns. Rewriting the most recent region partition leaves the table-level partitioning scheme on region.
Changing from region-based to date-based traditional partitioning requires rewriting all of the table's data with the new partition column. This can consume substantial time and compute for a 120 TB table. Liquid clustering and its FULL optimization command do not implement the required change to traditional partitioning.