-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Modify index bound value #3285
Modify index bound value #3285
Conversation
} else { | ||
auto tmp = std::make_pair(item.value_, include); | ||
OptimizerUtils::compareAndSwapBound(end, tmp); | ||
} |
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.
What does this code mean?
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.
assign min(end,tmp) to end
1159341
to
c6eb158
Compare
Codecov Report
@@ Coverage Diff @@
## master #3285 +/- ##
==========================================
+ Coverage 85.24% 85.30% +0.06%
==========================================
Files 1295 1303 +8
Lines 118190 119417 +1227
==========================================
+ Hits 100748 101873 +1125
- Misses 17442 17544 +102
Continue to review full report at Codecov.
|
h.hint.set_begin_value(std::move(begin)); | ||
h.score = IndexScore::kPrefix; | ||
} else if (begin.first == end.first) { | ||
if (begin.second == false && end.second == false) { |
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.
Why we don't need to return false for case (x, x], [x, x)?
(x, x) has return false in line 244
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.
This is a good suggestion. I was not sure if (x,x] or [x,x) represented the empty set.
What type of PR is this?
What does this PR do?
close issue 2745
Which issue(s)/PR(s) this PR relates to?
Fix the problem of index query interval error
Special notes for your reviewer, ex. impact of this fix, etc:
Additional context:
Checklist:
Release notes:
Please confirm whether to reflect in release notes and how to describe: