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, executor: return TableDual in tryFastPlan for predicate like handlePK=1.1 #10716

Merged
merged 2 commits into from
Jun 5, 2019

Conversation

XuHuaiyu
Copy link
Contributor

@XuHuaiyu XuHuaiyu commented Jun 5, 2019

What problem does this PR solve?

Fix #10677

What is changed and how it works?

Return TableDual when the predicate is PKIsHandle = 1.1.

Check List

Tests

  • Integration test

Code changes

  • Has exported function/method change

Side effects

N/A

Related changes

  • Need to cherry-pick to the release branch

@XuHuaiyu XuHuaiyu added type/bugfix This PR fixes a bug. sig/planner SIG: Planner labels Jun 5, 2019
@XuHuaiyu XuHuaiyu requested review from zz-jason and qw4990 June 5, 2019 06:31
@XuHuaiyu
Copy link
Contributor Author

XuHuaiyu commented Jun 5, 2019

/run-all-tests

zz-jason
zz-jason previously approved these changes Jun 5, 2019
Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason dismissed their stale review June 5, 2019 06:34

need one more review

@@ -3857,6 +3857,22 @@ func (s *testSuite) TestIssue10448(c *C) {
tk.MustQuery("desc select * from t where pk = 9223372036854775808").Check(testkit.Rows("Point_Get_1 1.00 root table:t, handle:9223372036854775808"))
}

func (s *testSuite) TestIssue10677(c *C) {
Copy link
Member

Choose a reason for hiding this comment

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

maybe it's more proper to move this test to testPointGetSuite

@codecov
Copy link

codecov bot commented Jun 5, 2019

Codecov Report

Merging #10716 into master will increase coverage by 0.0139%.
The diff coverage is 50%.

@@               Coverage Diff                @@
##             master     #10716        +/-   ##
================================================
+ Coverage   79.6677%   79.6816%   +0.0139%     
================================================
  Files           414        414                
  Lines         87811      87827        +16     
================================================
+ Hits          69957      69982        +25     
+ Misses        12674      12667         -7     
+ Partials       5180       5178         -2

Copy link
Contributor

@qw4990 qw4990 left a comment

Choose a reason for hiding this comment

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

LGTM

@XuHuaiyu
Copy link
Contributor Author

XuHuaiyu commented Jun 5, 2019

/run-all-tests

@XuHuaiyu XuHuaiyu added the status/LGT2 Indicates that a PR has LGTM 2. label Jun 5, 2019
@XuHuaiyu XuHuaiyu merged commit 1fb0e97 into pingcap:master Jun 5, 2019
@XuHuaiyu XuHuaiyu deleted the point_get_decimal branch June 5, 2019 07:04
XuHuaiyu added a commit to XuHuaiyu/tidb that referenced this pull request Jun 6, 2019
zz-jason pushed a commit that referenced this pull request Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/planner SIG: Planner status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wrong result for select * from t where int_pk = 1.1
3 participants