zclllyybb commented on code in PR #37495: URL: https://github.com/apache/doris/pull/37495#discussion_r1673829189
########## regression-test/suites/datatype_p0/nested_types/query/array_functions/test_array_functions_array_with_const.groovy: ########## @@ -31,7 +32,16 @@ suite("test_array_functions_array_with_const", "p0") { SELECT array_with_constant(-231.37104, -138); """ } catch (Exception ex) { - assertTrue(ex.getMessage().contains("Array size can not be negative in function:array_with_constant")) + assertTrue(ex.getMessage().contains("Array size should in range(0, 1000000) in function")) + } + + // -- {server for large array} + try { Review Comment: don't use `try-catch` to do sql failure test. it doesn't work at all. if a sql didn't fail, the test will success. it's not as expected. please use `test{ sql exception }` instead -- 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