-
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
planner, executor: fix cast not check error #21064
Conversation
PLAT I think this pr can fix issue #21063 |
/run-all-tests |
/run-all-tests |
/run-all-tests |
@pengdaqian2020 I just talk with @bb7133 yesterday. I think we can move some check to parser component, and this will make the fix more easily and fully covered with all statement. What do you think about that? |
It looks good |
/run-all-tests |
What about implements this validation on parser component? And there also a bug for convert function:
|
the convert function is different types compare error ? |
PLAT pingcap/parser#1099 |
/run-all-tests |
1 similar comment
/run-all-tests |
@lzmhhh123 PTAL |
1 similar comment
@lzmhhh123 PTAL |
{`select * from t where d = convert(d , decimal(10,20))`, false, errors.New(`[types:1427]For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column '')` + ".")}, | ||
{`select * from t where d = convert("d", decimal(10,20))`, false, errors.New(`[types:1427]For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column '')` + ".")}, | ||
{`select * from t where d = convert("'d'", decimal(10,20))`, false, errors.New(`[types:1427]For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column '')` + ".")}, |
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 all the columns names are empty when error M bigger than D happened?
BTW, pls resolve conflicts. |
@pengdaqian2020 hi, any updated? |
@pengdaqian2020: PR needs rebase. 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. |
Closed as the original issue closed. @pengdaqian2020 thanks for your contribution! |
What problem does this PR solve?
Issue Number: close #21063
Problem Summary:
What is changed and how it works?
What's Changed:
the
preprocessor
will pre check typeHow it Works:
the
preprocessor
will pre check typeRelated changes
Check List
Tests
Side effects
No
No
No
Release note