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

util: build right range when where stmt only have string column. (#16645) #16658

Merged
merged 5 commits into from
Jun 28, 2020

Conversation

sre-bot
Copy link
Contributor

@sre-bot sre-bot commented Apr 21, 2020

cherry-pick #16645 to release-3.0


What problem does this PR solve?

Issue Number: close #16505 , close #16190

Problem Summary: TableIndexScan's result is different from TableFullScan and Selection.

What is changed and how it works?

What's Changed: If the where stmt only have String column, it shouldn't be one of accessCondition to build access range. Because we should convert the string to float to check it is ture/false.

How it Works: However, revert #16135 that only cover some cases. The pr can cover all situations.

Related changes

  • Need to cherry-pick to the release branch 2.1,3.0,3.1,4.0

Check List

Tests

  • Unit test
  • Integration test

Release note

  • util: fix the wrong result when where stmt only have string column

@sre-bot
Copy link
Contributor Author

sre-bot commented Apr 21, 2020

/run-all-tests

@wshwsh12
Copy link
Contributor

/run-all-tests

@wshwsh12
Copy link
Contributor

/run-all-tests

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

@bb7133 bb7133 modified the milestones: v3.0.14, v3.0.15 May 19, 2020
@bb7133 bb7133 modified the milestones: v3.0.15, 3.0.16, v3.0.16 Jun 6, 2020
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.

@wshwsh12 Please resolve conflicts.

@sre-bot
Copy link
Contributor Author

sre-bot commented Jun 28, 2020

@qw4990 qw4990 added the priority/release-blocker This issue blocks a release. Please solve it ASAP. label Jun 28, 2020
@wshwsh12
Copy link
Contributor

/run-all-tests

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

@ti-srebot
Copy link
Contributor

@qw4990,Thanks for you review.

@qw4990
Copy link
Contributor

qw4990 commented Jun 28, 2020

/run-all-tests

@qw4990
Copy link
Contributor

qw4990 commented Jun 28, 2020

/rebuild

@sre-bot
Copy link
Contributor Author

sre-bot commented Jun 28, 2020

@qw4990
Copy link
Contributor

qw4990 commented Jun 28, 2020

/run-all-tests

@qw4990
Copy link
Contributor

qw4990 commented Jun 28, 2020

/run-all-tests

@qw4990
Copy link
Contributor

qw4990 commented Jun 28, 2020

/rebuild

@qw4990
Copy link
Contributor

qw4990 commented Jun 28, 2020

/run-unit-test

@zz-jason
Copy link
Member

/merge

@ti-srebot ti-srebot added the status/can-merge Indicates a PR has been approved by a committer. label Jun 28, 2020
@ti-srebot
Copy link
Contributor

/run-all-tests

@ti-srebot
Copy link
Contributor

@bb7133, Thanks for your review, however we are sorry that your vote won't be count. You are not a reviewer or committer or co-leader or leader for the related sigs:planner(slack),execution(slack).

@bb7133 bb7133 merged commit 073a51e into pingcap:release-3.0 Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression component/util priority/release-blocker This issue blocks a release. Please solve it ASAP. sig/planner SIG: Planner status/can-merge Indicates a PR has been approved by a committer. type/bugfix This PR fixes a bug. type/3.0-cherry-pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants