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: 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