-
Notifications
You must be signed in to change notification settings - Fork 752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support histogram for equal condition #11297
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
let bucket_min = hist.buckets[idx - 1].upper_bound().to_double()?; | ||
let bucket_max = bucket.upper_bound().to_double()?; | ||
// If the bucket max is less than min, skip it | ||
if bucket_max < min { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since bucket_max
(upper_bound) is derived from col_stat.min
and col_stat.max
, so I think bucket_max < min
will always be false.
let bucket_min = hist.buckets[idx - 1].upper_bound().to_double()?; | ||
let bucket_max = bucket.upper_bound().to_double()?; | ||
// If the bucket max is less than min, skip it | ||
if bucket_max < const_value || bucket.num_distinct() == 0.0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bucket_max <= const_value
, because the bucket range is [bucket_min, bucket_max).
continue; | ||
} | ||
// If the bucket min is greater than max, stop iteration | ||
if bucket_min >= const_value { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bucket_min > const_value
Will continue the ticket after #11332 |
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
Summary about this PR
Closes #issue
This change is