-
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: open CAST string as real push down switcher #14323
Conversation
Signed-off-by: Lonng <heng@lonng.org>
/run-integration-copr-test tikv=pr/6390 |
/run-integration-copr-test tikv=pr/6390 |
Signed-off-by: Lonng <heng@lonng.org>
/run-integration-copr-test tikv=pr/6390 |
/run-all-tests tikv=pr/6390 |
if isNull || err != nil { | ||
return 0, isNull, err | ||
a, isLHSNull, err := s.args[0].EvalReal(s.ctx, row) | ||
if err != nil { |
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.
Why change this?
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.
All of the expressions which have two arguments in TiDB have this pattern, they have inconsistent behavior with MySQL.
create table t (a varchar(10));
insert into t values ('2007');
select * from t where NULL + pow(7020, a);
The above statement should report an error.
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
Note: this PR should be merged with tikv/tikv#6390 together. |
/run-all-tests tikv=pr/6390 |
Signed-off-by: Lonng heng@lonng.org
What problem does this PR solve?
This PR opens the push-down switcher of the CAST string as real.
Additional, this PR fixes the #14326.
What is changed and how it works?
The tikv/tikv#6390 has fix the inconsistent with TiDB.
Check List
Tests