Manya0407 commented on PR #6746:
URL: https://github.com/apache/hive/pull/6746#issuecomment-7343044682

   @rubenada @thomasrebele @zabetak 
    Following an earlier discussion with @zabetak, I ran a performance 
benchmark to check the impact of this change.
   
   **Setup:** TPC-DS 10TB (Iceberg), 12 LLAP nodes. I ran the 19 queries whose 
plans change with this PR, comparing master and this branch on the same base 
image (only `hive-exec`/`hive-common` differ). Each query ran 3 times; the 
first run is a warm-up and the best of the remaining runs is reported.
   
   **Findings:**
   - 18/19 queries show no regression (all within run-to-run noise); q16, q94 
and q95 were marginally faster.
   - Overall, the change gives much more realistic range estimates than 
master's 1/NDV fallback.
   - The one exception is **q64, about 10% slower** (confirmed with a 
5-iteration re-run). Its `i_current_price BETWEEN 81 AND 90` filter is on a 
skewed column, so the uniform estimate is off there. Master's estimate is even 
further off, but it happens to lead to a better join order for this query.
   
   **Suggestion:** keep the uniform estimate on by default, since skewed 
columns are really a case for histograms. Alternatively, it could go behind a 
separate CBO flag that's off by default.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to