-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Codecov Report
@@ 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 |
/run-all-tests |
Signed-off-by: sre-bot <[email protected]>
cherry pick to release-3.0 in PR #16867 |
Signed-off-by: sre-bot <[email protected]>
cherry pick to release-3.1 in PR #16868 |
…ushed down to avoid panic (pingcap#16671)
cherry pick to release-4.0 in PR #16869 |
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.