07-21-2025 01:51 AM
Dear all
If I understand correctly, OPTIMIZE cannot run in parallel with actual data load. We see 'concurrent update' errors in our environment if this happens; due to which we are unable to dedicate a maintenance window for the tables health.
And, I saw a presentation from DAIS 2025 that says liquid clustering can run in parallel with actual data load.
Please correct the understanding here.
Appreciate the mindshare...
07-21-2025 03:21 AM - edited 07-21-2025 03:25 AM
Hi @noorbasha534 ,
Yes, Liquid Clustering optimization can be executed on delta tables automatically or manually, at write time with Auto Compaction enabled or at any time using OPTIMIZE command, respectively.
Liquid Clustering - The Internals of Delta Lake
Additionally, it is mentioned in below blog post. Look for clustering on-write:
Announcing General Availability of Liquid Clustering | Databricks Blog
07-21-2025 02:02 AM
Liquid clustering reorganizes data incrementally, which will work faster because it optimizes only new data. Compared to Z-order there is a different algorithm for data organization (Hilbert curve) that alows incremental.
07-21-2025 02:57 AM
@MariuszK this does not answer my question. Can I run OPTIMIZE in parallel with the data load of a liquid clustered table?
07-21-2025 03:21 AM - edited 07-21-2025 03:25 AM
Hi @noorbasha534 ,
Yes, Liquid Clustering optimization can be executed on delta tables automatically or manually, at write time with Auto Compaction enabled or at any time using OPTIMIZE command, respectively.
Liquid Clustering - The Internals of Delta Lake
Additionally, it is mentioned in below blog post. Look for clustering on-write:
Announcing General Availability of Liquid Clustering | Databricks Blog
07-21-2025 05:39 AM
@noorbasha534, This is a good question to clarify this topic. According to documentation, yes, but honestly speaking, I haven't had a chance to check it in the described scenario.
07-21-2025 02:13 PM
@MariuszK @szymon_dybczak thanks both. appreciate your support.
Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!
Sign Up Now