Godel Kurt
03/23/2023, 2:40 AMKashyap Bhatt
03/23/2023, 3:01 AMOPTMIZE my_table
then it'll do it for whole table. You can narrow down with a where clause to only select data that changed.
OPTIMIZE events WHERE partition_date_column = '2021-11-18' ZORDER BY (eventType)
https://docs.delta.io/latest/optimizations-oss.html#z-ordering-multi-dimensional-clusteringGodel Kurt
03/23/2023, 4:01 AMKashyap Bhatt
03/23/2023, 2:23 PMI ran zorder and compact on a file of 1MBThis is the part that's unclear to me. When you run OPTIMIZE, you just provide name of table and optionally some filters to select the data you want to optimize. And then delta decides which files need to be touched. YOU don't tell delta
OPTIMIZE <this-specific-file>
.
Perhaps posting the command you executed would help.