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

Merged
merged 6 commits into from
Apr 27, 2020

Conversation

qw4990
Copy link
Contributor

@qw4990 qw4990 commented Apr 21, 2020

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.

@qw4990 qw4990 requested review from a team as code owners April 21, 2020 09:26
@ghost ghost removed request for a team April 21, 2020 09:27
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

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

@codecov
Copy link

codecov bot commented Apr 27, 2020

Codecov Report

Merging #16671 into master will decrease coverage by 0.1767%.
The diff coverage is 62.5000%.

@@               Coverage Diff                @@
##             master     #16671        +/-   ##
================================================
- Coverage   80.5006%   80.3239%   -0.1768%     
================================================
  Files           508        507         -1     
  Lines        139087     137375      -1712     
================================================
- Hits         111966     110345      -1621     
+ Misses        18462      18359       -103     
- Partials       8659       8671        +12     

@qw4990
Copy link
Contributor Author

qw4990 commented Apr 27, 2020

/run-all-tests

@qw4990 qw4990 merged commit f51c200 into pingcap:master Apr 27, 2020
sre-bot pushed a commit to sre-bot/tidb that referenced this pull request Apr 27, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Apr 27, 2020

cherry pick to release-3.0 in PR #16867

sre-bot pushed a commit to sre-bot/tidb that referenced this pull request Apr 27, 2020
@sre-bot
Copy link
Contributor

sre-bot commented Apr 27, 2020

cherry pick to release-3.1 in PR #16868

@sre-bot
Copy link
Contributor

sre-bot commented Apr 27, 2020

cherry pick to release-4.0 in PR #16869

SunRunAway pushed a commit that referenced this pull request Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

panic: runtime error: invalid memory address or nil pointer dereference [recovered]
4 participants