[X] I had searched in the issues and found no similar issues.
Version
master
What's Wrong?
select cast(c as decimal(30,9)) from (select cast("9999-12-31" as datetime) c) t3
--------------
+------------------------------+
| cast(c as DECIMALV3(30, 9)) |
+------------------------------+
| 703674110198153216.000000000 |
+------------------------------+
1 row in set (0.02 sec)
What You Expected?
select cast(c as decimal(30,9)) from (select cast("9999-12-31" as datetime) c) t3
cast(c as decimal(30,9))
99991231000000.000000000
Search before asking
Version
master
What's Wrong?
What You Expected?
How to Reproduce?
No response
Anything Else?
fix reference https://github.com/apache/doris/pull/32518
this will be an easy task
Are you willing to submit PR?
Code of Conduct