Skip to content

Conversation

@thomasrebele
Copy link
Contributor

What changes were proposed in this pull request?

Fix the statistics calculation in org.apache.hadoop.hive.ql.optimizer.stats.annotation.StatsRulesProcFactory.FilterStatsRule#evaluateComparatorWithHistogram.

Why are the changes needed?

See https://issues.apache.org/jira/browse/HIVE-29300.

Does this PR introduce any user-facing change?

Yes, it fixes the row count estimations when histogram statistics are available. This is necessary for AND predicates.

How was this patch tested?

qfile test

Copy link
Member

@deniskuzZ deniskuzZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, minor comment

@thomasrebele
Copy link
Contributor Author

Thank you for the review, @deniskuzZ! I've addressed your comments.

@sonarqubecloud
Copy link

@deniskuzZ deniskuzZ merged commit 7003dc9 into apache:master Nov 17, 2025
2 checks passed
deniskuzZ pushed a commit that referenced this pull request Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants