-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
stats: fix combined index low-bound check #7814
stats: fix combined index low-bound check #7814
Conversation
/run-all-tests |
statistics/histogram.go
Outdated
|
||
} | ||
|
||
func (hg *Histogram) canCMSketch(val types.Datum, partialCover bool) bool { |
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.
I feel it is a little awkward: why histogram needs to care about cm sketch? Maybe a better solution is to have different outOfRange
for Column
and Index
.
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.
LGTM
util/chunk/compare.go
Outdated
} | ||
|
||
// CompareOpt compares the value with ad with prefixAsEq optional | ||
func CompareOpt(row Row, colIdx int, ad *types.Datum, prefixAsEq bool) int { |
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.
Please add comments for prefixAsEq
.
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.
emmm..this param is stranger, I tried to refactor it
/run-all-tests |
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.
LGTM
/run-all-tests |
What problem does this PR solve?
fixes #7813
=1
will failure in low-bound check and break, so can not do following cm-sketch logic.What is changed and how it works?
for range
(kid1, pid2) ~ (kid2,pid2)
, judgekid1
as hit in range.Check List
Tests
Code changes
Side effects
Related changes
This change is