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

expression: return an error when finding some expressions cannot be pushed down to avoid panic (#16671) #16869

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

sre-bot
Copy link
Contributor

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

cherry-pick #16671 to release-4.0


What problem does this PR solve?

Issue Number: the first step to fix #16597

Problem Summary: in #16597, TiDB tries to convert some expressions which cannot be pushed down to PB data, which causes a panic.
And we don't know which expression causes this problem.

What is changed and how it works?

When converting expressions to PB data, if it finds some expression cannot be pushed down, return an error with information of that expression.

@sre-bot sre-bot requested review from a team as code owners April 27, 2020 12:50
@sre-bot
Copy link
Contributor Author

sre-bot commented Apr 27, 2020

/run-all-tests

@qw4990
Copy link
Contributor

qw4990 commented Apr 27, 2020

/run-integration-copr-test

Copy link
Member

@wjhuang2016 wjhuang2016 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
Contributor

@SunRunAway SunRunAway left a comment

Choose a reason for hiding this comment

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

LGTM

@SunRunAway SunRunAway added the status/can-merge Indicates a PR has been approved by a committer. label Apr 27, 2020
@SunRunAway SunRunAway merged commit 506224a into pingcap:release-4.0 Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression status/can-merge Indicates a PR has been approved by a committer. type/bugfix This PR fixes a bug. type/4.0-cherry-pick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants