Skip to content

HIVE-29365: Range predicate within the same histogram bucket leads to an estimate rowcount=1#6319

Draft
thomasrebele wants to merge 1 commit intoapache:masterfrom
thomasrebele:tr/HIVE-29365
Draft

HIVE-29365: Range predicate within the same histogram bucket leads to an estimate rowcount=1#6319
thomasrebele wants to merge 1 commit intoapache:masterfrom
thomasrebele:tr/HIVE-29365

Conversation

@thomasrebele
Copy link
Contributor

What changes were proposed in this pull request?

Take the error of the KLL sketch into account when estimating a selectivity.

Why are the changes needed?

Without the change, some rowcounts are underestimated by several orders of magnitude.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit test TestFilterSelectivityEstimator.

@sonarqubecloud
Copy link

@thomasrebele thomasrebele marked this pull request as draft February 12, 2026 13:55
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.

2 participants