zclllyybb commented on code in PR #47319:
URL: https://github.com/apache/doris/pull/47319#discussion_r1930059160
##########
regression-test/suites/nereids_p0/datatype/test_cast.groovy:
##########
@@ -96,6 +96,124 @@ suite("test_cast") {
sql "select cast(true as date);"
result([[null]])
}
+
+ explain {
+ sql("select cast('12:00:00' as time);")
+ notContains "cast("
+ }
+
+ testFoldConst("select cast(cast('16:32:04' as time) as string);")
+
+ check_fold_consistency "cast(cast('11:11:11' as time) as bigint);"
Review Comment:
forbid all time to numeric types.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]