Hello @Rajasaiharish !
For a UC Delta table, there are three main ANALYZE command families:
COMPUTE STATISTICS โ collects table/column statistics for the query optimiser.
COMPUTE DELTA STATISTICS โ recomputes Delta file-level statistics used for data skipping.
COMPUTE STORAGE METRICS โ calculates storage usage metrics.
There are three types of optimiser-stat collection sources, which you see on a UC delta table when ANALYZE is run:
- MANUAL_ANALYZE - Someone (notebook, SQL editor, job, DLT that isnโt on the auto-stats write path) runs ANALYZE TABLE โฆ COMPUTE STATISTICS.
- AUTO_STATS - Stats are collected on write / ingest, not manually.
- PREDICTIVE_ANALYZE - Predictive Optimization (maintenance-auto-compute) schedules ANALYZE.
You can run the query below to check the type of ANALYZE run on the table:
SHOW STATISTICS FROM catalog.schema.table AS JSON;
SHOW STATISTICS FROM catalog.schema.table FOR ALL COLUMNS AS JSON;
Look at statistics.collection_source and statistics.created_at in the output to see what type of ANALYZE was run on the table
Anudeep