-
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
executor: fix unexpected NotNullFlag in case when expr ret type #23102
Conversation
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
Signed-off-by: guo-shaoge <[email protected]>
PTAL @lzmhhh123 |
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
@XuHuaiyu: Please use If you have approved this PR, please ignore this reply. This reply is being used as a temporary reply during the migration of the new bot and will be removed on April 1. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/LGTM |
/LGTM |
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by writing |
/merge |
@XuHuaiyu: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: faadae1
|
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-4.0 in PR #23135 |
/run-cherry-picker |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-5.0-rc in PR #23340 |
Signed-off-by: guo-shaoge [email protected]
What problem does this PR solve?
Issue Number: close #23036
Problem Summary:
Output should be empty set, but TiDB output "1". Because when we fold constant for IsNull expr, optimizer found the result type of CaseWhen expr has NotNullFlag, which is unexpected. So rewriter return false directly
What is changed and how it works?
What's Changed:
Related changes
Check List
Tests
Side effects: no
Release note