From 4873f4b970e6a67cd41b96df23637c6f1741f8d1 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Fri, 2 Jul 2021 22:14:11 +0800 Subject: [PATCH] [td-4865]add test cases. --- tests/script/general/parser/nestquery.sim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/script/general/parser/nestquery.sim b/tests/script/general/parser/nestquery.sim index 35785bfb39..fe12972bf6 100644 --- a/tests/script/general/parser/nestquery.sim +++ b/tests/script/general/parser/nestquery.sim @@ -430,5 +430,24 @@ print ===========>td-4805 sql_error select tbname, i from (select * from nest_tb0) group by i; sql select count(*),c1 from (select * from nest_tb0) where c1 < 2 group by c1; +if $rows != 2 then + return -1 +endi + +if $data00 != 100 then + return -1 +endi + +if $data01 != 0 then + return -1 +endi + +if $data10 != 100 then + return -1 +endi + +if $data11 != 1 then + return -1 +endi system sh/exec.sh -n dnode1 -s stop -x SIGINT \ No newline at end of file -- GitLab