From 881c0e44a08f29d6b76125a5fc102d099c988eff Mon Sep 17 00:00:00 2001 From: Shengliang Guan Date: Fri, 22 Jul 2022 13:55:33 +0800 Subject: [PATCH] test: adjust case --- tests/script/tsim/parser/lastrow_query.sim | 46 +++++++++++----------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/tests/script/tsim/parser/lastrow_query.sim b/tests/script/tsim/parser/lastrow_query.sim index cb523d5c8e..5ffba38d14 100644 --- a/tests/script/tsim/parser/lastrow_query.sim +++ b/tests/script/tsim/parser/lastrow_query.sim @@ -66,32 +66,32 @@ if $row != 21600 then endi #regression test case 3 -sql select t1,t1,count(*),t1,t1 from lr_stb0 where ts>'2018-09-24 00:00:00.000' and ts<'2018-09-25 00:00:00.000' partition by t1 interval(1h) fill(NULL) limit 1 +sql select _wstart, t1,t1,count(*),t1,t1 from lr_stb0 where ts>'2018-09-24 00:00:00.000' and ts<'2018-09-25 00:00:00.000' partition by t1 interval(1h) fill(NULL) limit 1 if $row != 2 then return -1 endi -#if $data01 != 7 then -# return -1 -#endi -#if $data02 != 7 then -# return -1 -#endi -#if $data03 != 59 then -# print expect 59, actual: $data03 -# return -1 -#endi -#if $data04 != 7 then -# return -1 -#endi -#if $data11 != 8 then -# return -1 -#endi -#if $data12 != 8 then -# return -1 -#endi -#if $data13 != NULL then -# return -1 -#endi +if $data01 != NULL then + return -1 +endi +if $data02 != NULL then + return -1 +endi +if $data03 != NULL then + return -1 +endi +if $data11 != 7 then + return -1 +endi +if $data12 != 7 then + return -1 +endi +if $data13 != 59 then + print expect 59, actual: $data03 + return -1 +endi +if $data14 != 7 then + return -1 +endi sql select t1,t1,count(*),t1,t1 from lr_stb0 where ts>'2018-09-24 00:00:00.000' and ts<'2018-09-25 00:00:00.000' partition by t1 interval(1h) fill(NULL) limit 9 if $rows != 18 then