-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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: ignore TypeNULL
in HandleBinaryLiteral
#49527
expression: ignore TypeNULL
in HandleBinaryLiteral
#49527
Conversation
7919946
to
eeceee4
Compare
@@ -97,3 +97,10 @@ select 1 from t where y = YEAR(CURDATE()); | |||
select cast(cast('14:15' as time) as year) = YEAR(CURDATE()); | |||
cast(cast('14:15' as time) as year) = YEAR(CURDATE()) | |||
1 | |||
explain select null as a union all select 'a' as a; |
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.
What is the explain result without this pr?
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.
mysql> explain select null as a union all select 'a' as a;
+------------------------+---------+------+---------------+---------------------------------------------------+
| id | estRows | task | access object | operator info |
+------------------------+---------+------+---------------+---------------------------------------------------+
| Union_8 | 2.00 | root | | |
| ├─Projection_10 | 1.00 | root | | cast(from_binary(<nil>), var_string(1))->Column#3 |
| │ └─TableDual_11 | 1.00 | root | | rows:1 |
| └─Projection_12 | 1.00 | root | | a->Column#3 |
| └─TableDual_13 | 1.00 | root | | rows:1 |
+------------------------+---------+------+---------------+---------------------------------------------------+
5 rows in set (0.00 sec)
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #49527 +/- ##
================================================
+ Coverage 70.9977% 71.5619% +0.5642%
================================================
Files 1368 1418 +50
Lines 399517 415243 +15726
================================================
+ Hits 283648 297156 +13508
- Misses 96068 99289 +3221
+ Partials 19801 18798 -1003
Flags with carried forward coverage won't be shown. Click here to find out more.
|
eeceee4
to
3f0c4e5
Compare
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
[LGTM Timeline notifier]Timeline:
|
3f0c4e5
to
d1e207c
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jackysp, tangenta, windtalker The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test all |
3 similar comments
/test all |
/test all |
/test all |
/test ? |
@wuhuizuo: The following commands are available to trigger required jobs:
The following commands are available to trigger optional jobs:
Use
In response to this:
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 kubernetes/test-infra repository. |
/retest |
Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
0402760
to
3348a87
Compare
Signed-off-by: Yang Keao <yangkeao@chunibyo.icu>
3348a87
to
36817d5
Compare
/retest |
1 similar comment
/retest |
/test check-dev2 |
@wuhuizuo: The specified target(s) for
Use In response to this:
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 kubernetes/test-infra repository. |
/retest |
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
…gcap#49528) (pingcap#34) close pingcap#49526 Co-authored-by: YangKeao <yangkeao@chunibyo.icu>
What problem does this PR solve?
Issue Number: close #49526
Problem Summary:
What changed and how does it work?
Ignore the
TypeNull
inHandleBinaryLiteral
, as thecastStringToString
will actually do nothing for NULL (except changing the type).Check List
Tests
Side effects
Documentation
Release note