-
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
planner: fix wrong full range for table scan in tiflash #12756
planner: fix wrong full range for table scan in tiflash #12756
Conversation
@@ -1025,7 +1025,7 @@ func (ds *DataSource) getOriginalPhysicalTableScan(prop *property.PhysicalProper | |||
ts.StoreType = kv.TiFlash | |||
ts.filterCondition = append(ts.filterCondition, ts.AccessCondition...) | |||
ts.AccessCondition = nil | |||
ts.Ranges = ranger.FullNotNullRange() | |||
ts.Ranges = ranger.FullIntRange(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.
Is there always 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.
Yes, TiFlash doesn't consider the unsigned situation. It only receives (-inf, +inf).
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
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
Codecov Report
@@ Coverage Diff @@
## master #12756 +/- ##
===========================================
Coverage 79.9013% 79.9013%
===========================================
Files 462 462
Lines 105166 105166
===========================================
Hits 84029 84029
Misses 14916 14916
Partials 6221 6221 |
/run-all-tests |
What problem does this PR solve?
As the title says.
What is changed and how it works?
Change "FullNotNullRange" to "FullIntRange".
Check List
Tests