Mryange opened a new pull request, #36110: URL: https://github.com/apache/doris/pull/36110
## Proposed changes ``` mysql [test]>set DEBUG_SKIP_FOLD_CONSTANT = true; Query OK, 0 rows affected (0.00 sec) mysql [test]>select cast(unix_timestamp("2024-01-01",'yyyy-MM-dd') as bigint); +------------------------------------------------------------+ | cast(unix_timestamp('2024-01-01', 'yyyy-MM-dd') as BIGINT) | +------------------------------------------------------------+ | 1704038400000000 | +------------------------------------------------------------+ ``` now ``` mysql [test]>select cast(unix_timestamp("2024-01-01",'yyyy-MM-dd') as bigint); +------------------------------------------------------------+ | cast(unix_timestamp('2024-01-01', 'yyyy-MM-dd') as BIGINT) | +------------------------------------------------------------+ | 1704038400 | +------------------------------------------------------------+ 1 row in set (0.01 sec) ``` The column does not have a scale set, but the cast uses the scale to perform the cast. <!--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