Hi @Sainath368 ,
From what I understand, COMPUTE DELTA STATISTICS generates Delta statistics that are mainly used for data skipping, helping speed up table scans by avoiding unnecessary file reads. However, these stats aren't used by the query optimizer.
If you want to help the optimizer make better decisions, you'll need to run COMPUTE STATISTICS FOR ALL COLUMNS.
- COMPUTE STATISTICS gathers table-level statistics,
- COMPUTE STATISTICS FOR ALL COLUMNS collects both table-level and column-level statistics.
These stats allow the optimizer to estimate table sizes and column data characteristics, which improves query planning like deciding which table to scan first or whether to broadcast a table in a join