Skip to content
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

Merged
merged 2 commits into from
Oct 16, 2019

Conversation

lzmhhh123
Copy link
Contributor

@lzmhhh123 lzmhhh123 commented Oct 16, 2019

What problem does this PR solve?

As the title says.

What is changed and how it works?

Change "FullNotNullRange" to "FullIntRange".

Check List

Tests

  • Unit test
  • Integration test

@lzmhhh123 lzmhhh123 added sig/planner SIG: Planner type/bug-fix This PR fixes a bug. labels Oct 16, 2019
@@ -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)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there always false?

Copy link
Contributor Author

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).

Copy link
Contributor

@alivxxx alivxxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@winoros winoros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@lzmhhh123 lzmhhh123 added status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. labels Oct 16, 2019
@codecov
Copy link

codecov bot commented Oct 16, 2019

Codecov Report

Merging #12756 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master     #12756   +/-   ##
===========================================
  Coverage   79.9013%   79.9013%           
===========================================
  Files           462        462           
  Lines        105166     105166           
===========================================
  Hits          84029      84029           
  Misses        14916      14916           
  Partials       6221       6221

@sre-bot
Copy link
Contributor

sre-bot commented Oct 16, 2019

/run-all-tests

@sre-bot sre-bot merged commit 2f7a66f into pingcap:master Oct 16, 2019
@lzmhhh123 lzmhhh123 deleted the bug-fix/fix-wrong-range-for-tiflash branch October 16, 2019 08:06
XiaTianliang pushed a commit to XiaTianliang/tidb that referenced this pull request Dec 21, 2019
lzmhhh123 added a commit to lzmhhh123/tidb that referenced this pull request Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/planner SIG: Planner status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2. type/bug-fix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants