-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Fix](cast) Fix wrong corner case of datetime conversion about timezone convert #57422
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
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
87ae4cf to
ee92dc1
Compare
|
run buildall |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
BE Regression && UT Coverage ReportIncrement line coverage Increment coverage report
|
|
run performance |
|
PR approved by anyone and no changes requested. |
|
PR approved by at least one committer and no changes requested. |
ClickBench: Total hot run time: 28.03 s |
…ne convert (#57422) before: ```sql mysql> select cast('9999-12-31 23:59:59.999999 +00:00' as datetime(6)); +----------------------------------------------------------+ | cast('9999-12-31 23:59:59.999999 +00:00' as datetime(6)) | +----------------------------------------------------------+ | | +----------------------------------------------------------+ ``` now: ```sql mysql> select cast('9999-12-31 23:59:59.999999 +00:00' as datetime(6)); +----------------------------------------------------------+ | cast('9999-12-31 23:59:59.999999 +00:00' as datetime(6)) | +----------------------------------------------------------+ | NULL | +----------------------------------------------------------+ ```
…ne convert (apache#57422) before: ```sql mysql> select cast('9999-12-31 23:59:59.999999 +00:00' as datetime(6)); +----------------------------------------------------------+ | cast('9999-12-31 23:59:59.999999 +00:00' as datetime(6)) | +----------------------------------------------------------+ | | +----------------------------------------------------------+ ``` now: ```sql mysql> select cast('9999-12-31 23:59:59.999999 +00:00' as datetime(6)); +----------------------------------------------------------+ | cast('9999-12-31 23:59:59.999999 +00:00' as datetime(6)) | +----------------------------------------------------------+ | NULL | +----------------------------------------------------------+ ```
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
before:
now:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)