-
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, types: fix datetime and year comparison error (#20233) #21881
expression, types: fix datetime and year comparison error (#20233) #21881
Conversation
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
/run-all-tests |
@XuHuaiyu you're already a collaborator in bot's repo. |
Does this PR need to merge into release-4.0? @XuHuaiyu |
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
/run-all-tests |
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
/merge |
Your auto merge job has been accepted, waiting for:
|
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests tikv=pr/9299 |
/run-all-tests |
@ti-srebot merge failed. |
/run-all-tests |
@ti-srebot merge failed. |
/run-all-tests |
/run-all-tests |
Need to fix coprocessor first. |
/run-all-tests tikv=pr/9299 |
/merge |
/run-all-tests |
/run-all-tests |
@ti-srebot merge failed. |
/merge |
/run-all-tests |
@ti-srebot merge failed. |
/run-integration-copr-test |
1 similar comment
/run-integration-copr-test |
/merge |
/run-all-tests |
cherry-pick #20233 to release-4.0
What problem does this PR solve?
Issue Number: close #20121
Problem Summary:
What is changed and how it works?
For Datetime vs Year, Date vs Year, Timestamp vs Year comparison, CompareTime should be used, and Year should be converted to
Time
before comparing.What's Changed:
expression/builtin_cast.go
types/time.go
How it Works:
For Datetime vs Year, Date vs Year, Timestamp vs Year comparison, CompareTime should be used, and Year should be converted to
Time
before comparing.Check List
Tests
Side effects
Release note