Skip to content

Clustering with liquid clustering, Z-ordering, and deletion vectors

Databricks offers several data layout and optimization strategies to speed up queries on Delta tables. Liquid Clustering is the modern, flexible approach recommended over legacy Z-ordering and partitioning, while deletion vectors optimize row-level DML operations by avoiding costly file rewrites.

1 · Learn the must-know

  • Liquid Clustering replaces both Hive-style partitioning and Z-ordering, using CLUSTER BY to define clustering keys that can be changed anytime without rewriting existing data.
  • Z-ordering (OPTIMIZE ... ZORDER BY) co-locates related data within files based on specified columns but requires periodic manual runs and does not incrementally cluster new data as efficiently as Liquid Clustering.
  • Tables cannot combine Liquid Clustering with Hive-style partitioning or Z-ordering; you must choose one strategy per table.
  • Deletion vectors mark rows as deleted or updated in an auxiliary file instead of immediately rewriting the entire Parquet data file, improving performance for DELETE, UPDATE, and MERGE operations.
  • Deletion vectors must eventually be reconciled through OPTIMIZE or VACUUM operations to physically remove marked rows and reclaim storage.
  • Liquid Clustering automatically triggers incremental clustering during writes and can also be optimized further by running OPTIMIZE, making it the preferred default for new Delta tables.

2 · Check your understanding

Check this objectiveFree · always available

A data engineering team maintains a Delta table that receives continuous streaming writes and is queried with filters on a high-cardinality customer_id column and a low-cardinality region column. Query patterns change frequently, and the team wants to keep the table well-clustered as it grows while minimizing ongoing maintenance work. Which approach should they implement?

Your objective map0 tried · 0 answered correctly · 77 untouched

What you have tried across DP-750's objectives, not a readiness score.

Set up and configure an Azure Databricks environment15-20% of the exam0 of 13 tried
Secure and govern Unity Catalog objects15-20% of the exam0 of 12 tried
Prepare and process data30-35% of the exam0 of 28 tried
Deploy and maintain data pipelines and workloads30-35% of the exam0 of 24 tried

3 · Keep going