You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by "zclllyybb (via GitHub)" <gi...@apache.org> on 2025/10/28 09:55:40 UTC

[PR] [Fix](cast) Fix wrong corner case of datetime conversion about timezone convert [doris]

zclllyybb opened a new pull request, #57422:
URL: https://github.com/apache/doris/pull/57422

   ### What problem does this PR solve?
   
   Issue Number: close #xxx
   
   Related PR: #xxx
   
   Problem Summary:
   
   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                                                     |
   +----------------------------------------------------------+
   ```
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [x] Regression test
       - [ ] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason <!-- Add your reason?  -->
   
   - Behavior changed:
       - [x] No.
       - [ ] Yes. <!-- Explain the behavior change -->
   
   - Does this need documentation?
       - [x] No.
       - [ ] Yes. <!-- Add document PR link here. eg: https://github.com/apache/doris-website/pull/1214 -->
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into -->
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Fix](cast) Fix wrong corner case of datetime conversion about timezone convert [doris]

Posted by "zclllyybb (via GitHub)" <gi...@apache.org>.
zclllyybb commented on PR #57422:
URL: https://github.com/apache/doris/pull/57422#issuecomment-3456589628

   run buildall


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Fix](cast) Fix wrong corner case of datetime conversion about timezone convert [doris]

Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #57422:
URL: https://github.com/apache/doris/pull/57422#issuecomment-3456471036

   # BE Regression && UT Coverage Report
   Increment line coverage `100.00% (4/4)` :tada:
   
   [Increment coverage report](http://coverage.selectdb-in.cc/coverage/57422_87ae4cf6351c2e7b60960327deb6225412435c7b_merge/increment_report/index.html)
   [Complete coverage report](http://coverage.selectdb-in.cc/coverage/57422_87ae4cf6351c2e7b60960327deb6225412435c7b_merge/report/index.html)
   | Category          | Coverage           |
   |-------------------|--------------------|
   | Function Coverage | 71.38% (23934/33529) |
   | Line Coverage     | 57.79% (248922/430755) |
   | Region Coverage   | 52.80% (206068/390267) |
   | Branch Coverage   | 54.55% (88650/162508) |


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Fix](cast) Fix wrong corner case of datetime conversion about timezone convert [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #57422:
URL: https://github.com/apache/doris/pull/57422#issuecomment-3459485494

   PR approved by anyone and no changes requested.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Fix](cast) Fix wrong corner case of datetime conversion about timezone convert [doris]

Posted by "Thearas (via GitHub)" <gi...@apache.org>.
Thearas commented on PR #57422:
URL: https://github.com/apache/doris/pull/57422#issuecomment-3455549001

   
   Thank you for your contribution to Apache Doris.
   Don't know what should be done next? See [How to process your PR](https://cwiki.apache.org/confluence/display/DORIS/How+to+process+your+PR).
   
   Please clearly describe your PR:
   1. What problem was fixed (it's best to include specific error reporting information). How it was fixed.
   2. Which behaviors were modified. What was the previous behavior, what is it now, why was it modified, and what possible impacts might there be.
   3. What features were added. Why was this function added?
   4. Which code was refactored and why was this part of the code refactored?
   5. Which functions were optimized and what is the difference before and after the optimization?
       


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Fix](cast) Fix wrong corner case of datetime conversion about timezone convert [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #57422:
URL: https://github.com/apache/doris/pull/57422#issuecomment-3456940520

   # BE UT Coverage Report
   Increment line coverage `100.00% (4/4)` :tada:
   
   [Increment coverage report](http://coverage.selectdb-in.cc/coverage/ee92dc1d563f74f4f7b6c8a59e9d77b0fe59ec68_ee92dc1d563f74f4f7b6c8a59e9d77b0fe59ec68/increment_report/index.html)
   [Complete coverage report](http://coverage.selectdb-in.cc/coverage/ee92dc1d563f74f4f7b6c8a59e9d77b0fe59ec68_ee92dc1d563f74f4f7b6c8a59e9d77b0fe59ec68/report/index.html)
   | Category          | Coverage           |
   |-------------------|--------------------|
   | Function Coverage | 52.75% (18058/34231) |
   | Line Coverage     | 37.99% (163730/431028) |
   | Region Coverage   | 32.36% (124783/385654) |
   | Branch Coverage   | 33.72% (54559/161777) |


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Fix](cast) Fix wrong corner case of datetime conversion about timezone convert [doris]

Posted by "zclllyybb (via GitHub)" <gi...@apache.org>.
zclllyybb merged PR #57422:
URL: https://github.com/apache/doris/pull/57422


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Fix](cast) Fix wrong corner case of datetime conversion about timezone convert [doris]

Posted by "hello-stephen (via GitHub)" <gi...@apache.org>.
hello-stephen commented on PR #57422:
URL: https://github.com/apache/doris/pull/57422#issuecomment-3457489392

   # BE Regression && UT Coverage Report
   Increment line coverage `100.00% (4/4)` :tada:
   
   [Increment coverage report](http://coverage.selectdb-in.cc/coverage/57422_ee92dc1d563f74f4f7b6c8a59e9d77b0fe59ec68_merge/increment_report/index.html)
   [Complete coverage report](http://coverage.selectdb-in.cc/coverage/57422_ee92dc1d563f74f4f7b6c8a59e9d77b0fe59ec68_merge/report/index.html)
   | Category          | Coverage           |
   |-------------------|--------------------|
   | Function Coverage | 71.38% (23937/33536) |
   | Line Coverage     | 57.81% (249074/430836) |
   | Region Coverage   | 52.99% (206872/390419) |
   | Branch Coverage   | 54.67% (88867/162560) |


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Fix](cast) Fix wrong corner case of datetime conversion about timezone convert [doris]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #57422:
URL: https://github.com/apache/doris/pull/57422#issuecomment-3459498857

   PR approved by at least one committer and no changes requested.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Fix](cast) Fix wrong corner case of datetime conversion about timezone convert [doris]

Posted by "zclllyybb (via GitHub)" <gi...@apache.org>.
zclllyybb commented on PR #57422:
URL: https://github.com/apache/doris/pull/57422#issuecomment-3455549318

   run buildall


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Fix](cast) Fix wrong corner case of datetime conversion about timezone convert [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #57422:
URL: https://github.com/apache/doris/pull/57422#issuecomment-3459550959

   
   <details>
   <summary>ClickBench: <b>Total hot run time: 28.03 s</b></summary>
   
   ```
   machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
   scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
   ClickBench test result on commit ee92dc1d563f74f4f7b6c8a59e9d77b0fe59ec68, data reload: false
   
   query1	0.06	0.05	0.05
   query2	0.10	0.06	0.05
   query3	0.26	0.09	0.09
   query4	1.60	0.12	0.12
   query5	0.28	0.26	0.26
   query6	1.18	0.67	0.64
   query7	0.03	0.03	0.02
   query8	0.05	0.04	0.04
   query9	0.64	0.54	0.52
   query10	0.57	0.58	0.57
   query11	0.16	0.11	0.11
   query12	0.15	0.12	0.12
   query13	0.62	0.61	0.60
   query14	1.02	1.05	1.03
   query15	0.87	0.84	0.87
   query16	0.39	0.39	0.40
   query17	1.06	1.07	1.07
   query18	0.22	0.21	0.21
   query19	1.93	1.82	1.83
   query20	0.02	0.01	0.01
   query21	15.47	0.20	0.14
   query22	5.08	0.07	0.05
   query23	15.66	0.27	0.10
   query24	2.81	0.59	0.78
   query25	0.08	0.06	0.06
   query26	0.15	0.14	0.12
   query27	0.07	0.06	0.06
   query28	5.01	1.16	0.94
   query29	12.58	4.05	3.37
   query30	0.29	0.13	0.11
   query31	2.82	0.61	0.38
   query32	3.24	0.55	0.47
   query33	3.05	3.05	3.04
   query34	15.81	5.18	4.54
   query35	4.61	4.63	4.63
   query36	0.69	0.51	0.50
   query37	0.10	0.07	0.07
   query38	0.07	0.05	0.04
   query39	0.04	0.03	0.03
   query40	0.17	0.15	0.14
   query41	0.09	0.04	0.03
   query42	0.04	0.04	0.03
   query43	0.04	0.04	0.03
   Total cold run time: 99.18 s
   Total hot run time: 28.03 s
   ```
   </details>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Fix](cast) Fix wrong corner case of datetime conversion about timezone convert [doris]

Posted by "doris-robot (via GitHub)" <gi...@apache.org>.
doris-robot commented on PR #57422:
URL: https://github.com/apache/doris/pull/57422#issuecomment-3456133791

   # BE UT Coverage Report
   Increment line coverage `100.00% (4/4)` :tada:
   
   [Increment coverage report](http://coverage.selectdb-in.cc/coverage/87ae4cf6351c2e7b60960327deb6225412435c7b_87ae4cf6351c2e7b60960327deb6225412435c7b/increment_report/index.html)
   [Complete coverage report](http://coverage.selectdb-in.cc/coverage/87ae4cf6351c2e7b60960327deb6225412435c7b_87ae4cf6351c2e7b60960327deb6225412435c7b/report/index.html)
   | Category          | Coverage           |
   |-------------------|--------------------|
   | Function Coverage | 52.76% (18056/34224) |
   | Line Coverage     | 37.99% (163732/430954) |
   | Region Coverage   | 32.37% (124821/385552) |
   | Branch Coverage   | 33.74% (54571/161735) |


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


Re: [PR] [Fix](cast) Fix wrong corner case of datetime conversion about timezone convert [doris]

Posted by "zclllyybb (via GitHub)" <gi...@apache.org>.
zclllyybb commented on PR #57422:
URL: https://github.com/apache/doris/pull/57422#issuecomment-3459404581

   run performance


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org