提交 a25880ad 编写于 作者: C Cary Xu

feat: check the result of rsma

上级 45b88c1a
...@@ -37,6 +37,10 @@ if $rows > 2 then ...@@ -37,6 +37,10 @@ if $rows > 2 then
print retention level 2 file rows $rows > 2 print retention level 2 file rows $rows > 2
return -1 return -1
endi endi
if $data01 != 1 && $data01 != 10 then
print retention level 2 file result $data01 != 1 or 10
return -1
endi
print =============== select * from retention level 1 from memory print =============== select * from retention level 1 from memory
sql select * from ct1 where ts > now-8d; sql select * from ct1 where ts > now-8d;
print $data00 $data01 print $data00 $data01
...@@ -44,6 +48,10 @@ if $rows > 2 then ...@@ -44,6 +48,10 @@ if $rows > 2 then
print retention level 1 file rows $rows > 2 print retention level 1 file rows $rows > 2
return -1 return -1
endi endi
if $data01 != 1 && $data01 != 10 then
print retention level 1 file result $data01 != 1 or 10
return -1
endi
print =============== select * from retention level 0 from memory print =============== select * from retention level 0 from memory
sql select * from ct1 where ts > now-3d; sql select * from ct1 where ts > now-3d;
print $data00 $data01 print $data00 $data01
...@@ -53,6 +61,10 @@ if $rows < 1 then ...@@ -53,6 +61,10 @@ if $rows < 1 then
print retention level 0 file rows $rows < 1 print retention level 0 file rows $rows < 1
return -1 return -1
endi endi
if $data01 != 1 && $data01 != 10 then
print retention level 0 file result $data01 != 10
return -1
endi
#=================================================================== #===================================================================
...@@ -67,6 +79,11 @@ if $rows > 2 then ...@@ -67,6 +79,11 @@ if $rows > 2 then
print retention level 2 file rows $rows > 2 print retention level 2 file rows $rows > 2
return -1 return -1
endi endi
if $data01 != 1 && $data01 != 10 then
print retention level 2 file result $data01 != 1 or 10
return -1
endi
print =============== select * from retention level 1 from file print =============== select * from retention level 1 from file
sql select * from ct1 where ts > now-8d; sql select * from ct1 where ts > now-8d;
...@@ -75,6 +92,10 @@ if $rows > 2 then ...@@ -75,6 +92,10 @@ if $rows > 2 then
print retention level 1 file rows $rows > 2 print retention level 1 file rows $rows > 2
return -1 return -1
endi endi
if $data01 != 1 && $data01 != 10 then
print retention level 1 file result $data01 != 1 or 10
return -1
endi
print =============== select * from retention level 0 from file print =============== select * from retention level 0 from file
sql select * from ct1 where ts > now-3d; sql select * from ct1 where ts > now-3d;
...@@ -85,5 +106,9 @@ if $rows < 1 then ...@@ -85,5 +106,9 @@ if $rows < 1 then
print retention level 0 file rows $rows < 1 print retention level 0 file rows $rows < 1
return -1 return -1
endi endi
if $data01 != 1 && $data01 != 10 then
print retention level 0 file result $data01 != 10
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册