dataroaring commented on code in PR #13737: URL: https://github.com/apache/doris/pull/13737#discussion_r1008992623
########## regression-test/suites/query_p0/sql_functions/math_functions/test_running_difference.sql: ########## @@ -0,0 +1,55 @@ +DROP TABLE IF EXISTS running_difference_test; + +CREATE TABLE running_difference_test ( + `id` int NULL COMMENT 'id' , + `day` date COMMENT 'day', + `time_val` datetime COMMENT 'time_val', + `doublenum` double NULL COMMENT 'doublenum' + ) +DUPLICATE KEY(id) +DISTRIBUTED BY HASH(id) BUCKETS 3 +PROPERTIES ( + "replication_num" = "1" +); + +INSERT into running_difference_test (id,day, time_val,doublenum) values ('1', '2022-11-08', '2022-03-12 11:05:04', 4.7), + ('1', '2022-10-31', '2022-03-12 10:42:01', 3.3), + ('1', '2022-10-27', '2022-03-12 10:41:02', 2.6), + ('1', '2022-10-28', '2022-03-12 10:41:00', 1.4); Review Comment: add null for test. -- 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