zclllyybb commented on code in PR #56200:
URL: https://github.com/apache/doris/pull/56200#discussion_r2384443394
##########
regression-test/suites/nereids_p0/sql_functions/datetime_functions/test_date_function_v2.groovy:
##########
@@ -86,4 +92,40 @@ suite("test_date_function_v2") {
testFoldConst("select microseconds_diff('2023-10-15 00:00:00', '2023-10-14
00:00:00.1');")
qt_sql_diff14 "select microseconds_diff('2023-10-15 00:00:00', '2023-10-14
00:00:00');"
testFoldConst("select microseconds_diff('2023-10-15 00:00:00', '2023-10-14
00:00:00');")
+
+ qt_sql_addtime1 "select add_time('2023-10-14 00:00:00', '22:35:22');"
+ testFoldConst("select add_time('2023-10-14 00:00:00', '22:35:22');")
+ qt_sql_addtime2 "select add_time('2023-10-14 00:00:00.12',
'22:35:22.123456');"
+ testFoldConst("select add_time('2023-10-14 00:00:00.12',
'22:35:22.123456');")
+ qt_sql_addtime3 "select add_time(dt, '122:35:22.123456') from
${tableName};"
+ qt_sql_addtime4 "select add_time(cast('822:35:22.123456' as time),
cast('421:01:01' as time));"
+ qt_sql_addtime5 "select add_time(cast('-82:35:22.123456' as time),
cast('-421:01:01' as time));"
+
+ // 测试表中的time字符串和datetime类型
Review Comment:
use English
--
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]