cancel
Showing results for 
Search instead for 
Did you mean: 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

Error on UC Liquid Clustering

RobsonNLPT
Contributor

I know we have 4 keys max on cluster by () for both z-order and partition keys. I got some issues when adding 4 keys and 1 specific key triggers that error (I was not expecting as this is about Create Table) . Stats makes sense if you need to optimize an existing clustering strategy due to changes on data profile DeltaAnalysisException: Liquid clustering requires clustering columns to have stats

1 ACCEPTED SOLUTION

Accepted Solutions

-werners-
Esteemed Contributor III

are you sure the 4 columns you defined for LC are statistics-enabled?
By default, only the first 32 are used.  This can be overridden (up or down).

View solution in original post

6 REPLIES 6

I'm aware about the feature and definitions. I've created an empty table enabled to LC using 4 keys.

I've got the error "DeltaAnalysisException: Liquid clustering requires clustering columns to have stats"

How its possible if I just created an empty table?

-werners-
Esteemed Contributor III

are you sure the 4 columns you defined for LC are statistics-enabled?
By default, only the first 32 are used.  This can be overridden (up or down).

My table has only 19 columns

That's correct. One of the cluster keys I was trying to clustering is not on top 32 positions

Thank you 

JurneeSalinas
New Contributor II

Any update?

swoop-dave
New Contributor II

Is Liquid cluster also helpful for high cardinality columns for a table Join?

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group