From ca2314efdb0006ec75a744c0fbce569ec3f4f880 Mon Sep 17 00:00:00 2001 From: slzhou Date: Wed, 7 Jun 2023 08:16:49 +0800 Subject: [PATCH] fix: add test case --- tests/script/tsim/query/unionall_as_table.sim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/script/tsim/query/unionall_as_table.sim b/tests/script/tsim/query/unionall_as_table.sim index 4d8f990718..f8145d4e97 100644 --- a/tests/script/tsim/query/unionall_as_table.sim +++ b/tests/script/tsim/query/unionall_as_table.sim @@ -42,4 +42,12 @@ endi if $data00 != 4 then return -1 endi + +sql create table ctcount(ts timestamp, f int); +sql insert into ctcount(ts) values(now)(now+1s); +sql select count(*) from (select f from ctcount); +print $data00 +if $data00 != 2 then + return -1 +endi system sh/exec.sh -n dnode1 -s stop -x SIGINT