From a9ad82f0bde5a8a7e4c9176742e86398dbb0c587 Mon Sep 17 00:00:00 2001 From: shenglian zhou Date: Fri, 10 Dec 2021 13:12:06 +0800 Subject: [PATCH] add math_funcs test case to script and add char_length error test case --- tests/script/fullGeneralSuite.sim | 1 + .../general/compute/scalar_str_concat_len.sim | 21 +++++++++++++++++++ tests/script/general/compute/testSuite.sim | 1 + tests/script/regressionSuite.sim | 1 + 4 files changed, 24 insertions(+) diff --git a/tests/script/fullGeneralSuite.sim b/tests/script/fullGeneralSuite.sim index 54b8cbd652..a1f00b9096 100644 --- a/tests/script/fullGeneralSuite.sim +++ b/tests/script/fullGeneralSuite.sim @@ -38,6 +38,7 @@ run general/compute/stddev.sim run general/compute/sum.sim run general/compute/top.sim run general/compute/block_dist.sim +run general/compute/math_funcs.sim run general/compute/scalar_pow.sim run general/compute/scalar_triangle.sim run general/compute/scalar_str_concat_len.sim diff --git a/tests/script/general/compute/scalar_str_concat_len.sim b/tests/script/general/compute/scalar_str_concat_len.sim index 21bf762ea8..bce47896b0 100644 --- a/tests/script/general/compute/scalar_str_concat_len.sim +++ b/tests/script/general/compute/scalar_str_concat_len.sim @@ -262,6 +262,27 @@ sql_error select concat_ws(c2) from $tb session(ts, 30s); sql_error select concat_ws(c2) from $stb slimit 2; sql_error select concat_ws(c2) from $stb interval(1m) slimit 2; + +sql_error select char_length(c2) from $stb group by tbname; + +sql_error select char_length(c2) from $stb group by tgcol; + +sql_error select char_length(c2) from $stb group by c3; + +sql_error select char_length(c2) from $stb interval(1m); + +sql_error select char_length(c2) from $stb state_window(c7); + +sql_error select char_length(c2) from $tb state_window(c7); + +sql_error select char_length(c2) from $stb session(ts, 30s); + +sql_error select char_length(c2) from $tb session(ts, 30s); + +sql_error select char_length(c2) from $stb slimit 2; + +sql_error select char_length(c2) from $stb interval(1m) slimit 2; + print =============== trival test print execute sql select concat(c2,c3),concat(c2,c3,c4),concat(c2,c3,c4,c5) from ct1 diff --git a/tests/script/general/compute/testSuite.sim b/tests/script/general/compute/testSuite.sim index 30a364d77b..c4daf742f6 100644 --- a/tests/script/general/compute/testSuite.sim +++ b/tests/script/general/compute/testSuite.sim @@ -20,6 +20,7 @@ run general/compute/stddev.sim run general/compute/sum.sim run general/compute/top.sim run general/compute/block_dist.sim +run general/compute/math_funcs.sim run general/compute/scalar_pow.sim run general/compute/scalar_triangle.sim run general/compute/scalar_str_concat_len.sim diff --git a/tests/script/regressionSuite.sim b/tests/script/regressionSuite.sim index 457a47c57e..cb3d5cd62c 100644 --- a/tests/script/regressionSuite.sim +++ b/tests/script/regressionSuite.sim @@ -38,6 +38,7 @@ run general/compute/stddev.sim run general/compute/sum.sim run general/compute/top.sim run general/compute/block_dist.sim +run general/compute/math_funcs.sim run general/compute/scalar_pow.sim run general/compute/scalar_triangle.sim run general/compute/scalar_str_concat_len.sim -- GitLab