Mryange opened a new pull request, #41270: URL: https://github.com/apache/doris/pull/41270
## Proposed changes before ``` mysql [(none)]>select sec_to_time(time_to_sec(cast('2024-09-24 16:00:00' as varchar))); +---------------------------------------------------------------------------------------+ | sec_to_time(time_to_sec(cast(cast('2024-09-24 16:00:00' as VARCHAR(65533)) as TIME))) | +---------------------------------------------------------------------------------------+ | 16:00:00 | +---------------------------------------------------------------------------------------+ mysql [(none)]>select ifnull(sec_to_time(time_to_sec(cast('2024-09-24 16:00:00' as varchar))), cast(300 as time)); +--------------------------------------------------------------------------------------------------------------------------------------------------+ | ifnull(cast(sec_to_time(time_to_sec(cast(cast('2024-09-24 16:00:00' as VARCHAR(65533)) as TIME))) as DOUBLE), cast(cast(300 as TIME) as DOUBLE)) | +--------------------------------------------------------------------------------------------------------------------------------------------------+ | 57600000000 | +--------------------------------------------------------------------------------------------------------------------------------------------------+ ``` now ``` mysql [(none)]>select ifnull(sec_to_time(time_to_sec(cast('2024-09-24 16:00:00' as varchar))), cast(300 as time)); +------------------------------------------------------------------------------------------------------------------+ | ifnull(sec_to_time(time_to_sec(cast(cast('2024-09-24 16:00:00' as VARCHAR(65533)) as TIME))), cast(300 as TIME)) | +------------------------------------------------------------------------------------------------------------------+ | 16:00:00 | +------------------------------------------------------------------------------------------------------------------+ ``` <!--Describe your changes.--> -- 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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org