fix: rsma cases refactor
This commit is contained in:
parent
a25880adc4
commit
1051277add
|
@ -37,10 +37,15 @@ 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
|
|
||||||
|
|
||||||
|
if $data01 != 1 then
|
||||||
|
if $data01 != 10 then
|
||||||
print retention level 2 file result $data01 != 1 or 10
|
print retention level 2 file result $data01 != 1 or 10
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
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
|
||||||
|
@ -48,23 +53,30 @@ 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
|
|
||||||
|
if $data01 != 1 then
|
||||||
|
if $data01 != 10 then
|
||||||
print retention level 1 file result $data01 != 1 or 10
|
print retention level 1 file result $data01 != 1 or 10
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
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
|
||||||
print $data10 $data11
|
print $data10 $data11
|
||||||
print $data20 $data21
|
print $data20 $data21
|
||||||
|
|
||||||
if $rows < 1 then
|
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
|
|
||||||
|
if $data01 != 10 then
|
||||||
print retention level 0 file result $data01 != 10
|
print retention level 0 file result $data01 != 10
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
#===================================================================
|
#===================================================================
|
||||||
|
|
||||||
|
|
||||||
|
@ -79,11 +91,13 @@ 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
|
|
||||||
|
if $data01 != 1 then
|
||||||
|
if $data01 != 10 then
|
||||||
print retention level 2 file result $data01 != 1 or 10
|
print retention level 2 file result $data01 != 1 or 10
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
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;
|
||||||
|
@ -92,10 +106,13 @@ 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
|
|
||||||
|
if $data01 != 1 then
|
||||||
|
if $data01 != 10 then
|
||||||
print retention level 1 file result $data01 != 1 or 10
|
print retention level 1 file result $data01 != 1 or 10
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
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;
|
||||||
|
@ -106,7 +123,8 @@ 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
|
|
||||||
|
if $data01 != 10 then
|
||||||
print retention level 0 file result $data01 != 10
|
print retention level 0 file result $data01 != 10
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
Loading…
Reference in New Issue