-
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
expression, types: fix datetime and year comparison error #20233
Conversation
No release note, Please follow https://github.com/pingcap/community/blob/master/contributors/release-note-checker.md |
/rebuild |
/rebuild |
/run-unit-test |
…ime, to fix issue 20121
…nd also Timestamp vs Year
8fc4eeb
to
16667aa
Compare
/rebuild |
1 similar comment
/rebuild |
/run-unit-test |
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.
rest LGTM
/run-integration-copr-test tikv=pr/9287 |
/run-integration-copr-test tikv=pr/9287 |
/run-all-tests tikv=pr/9287 |
1 similar comment
/run-all-tests tikv=pr/9287 |
/run-integration-common-test tikv=pr/9287 |
/run-integration-copr-test tikv=pr/9287 |
/run-integration-copr-test tikv=pr/9287 |
1 similar comment
/run-integration-copr-test tikv=pr/9287 |
/run-integration-copr-test tikv=pr/9287 |
1 similar comment
/run-integration-copr-test tikv=pr/9287 |
/run-all-tests tikv=pr/9287 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-3.0 in PR #21880 |
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
cherry pick to release-4.0 in PR #21881 |
cherry-pick #9287 to release-4.0 --- Signed-off-by: Zhenchi <zhongzc_arch@outlook.com> ### What problem does this PR solve? Issue Number: pingcap/tidb#20121 ### What is changed and how it works? Add `cast_year_as_time` ### Related changes - pingcap/tidb#20233 ### Check List <!--REMOVE the items that are not applicable--> Tests <!-- At least one of them must be included. --> - Unit test - Integration test ### Release note - Add `cast_year_as_time`
cherry-pick tikv#9287 to release-4.0 --- Signed-off-by: Zhenchi <zhongzc_arch@outlook.com> ### What problem does this PR solve? Issue Number: pingcap/tidb#20121 ### What is changed and how it works? Add `cast_year_as_time` ### Related changes - pingcap/tidb#20233 ### Check List <!--REMOVE the items that are not applicable--> Tests <!-- At least one of them must be included. --> - Unit test - Integration test ### Release note - Add `cast_year_as_time`
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