[TD-5662]<test>remove now and duplicate sim case
This commit is contained in:
parent
699e28bc91
commit
ae25f4076a
|
@ -30,7 +30,7 @@ while $i < 5
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 0, 0 )
|
sql insert into $tb values (1626739200000 + $ms , 0, 0 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -41,7 +41,7 @@ while $i < 10
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 1, 1 )
|
sql insert into $tb values (1626739200000 + $ms , 1, 1 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -116,103 +116,104 @@ if $rows != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step4
|
print =============== step4
|
||||||
sql select * from $mt where ts > now + 4m and tbcol = 1
|
# sql select * from $mt where ts > 1626739440001 and tbcol = 1
|
||||||
|
sql select * from $mt where ts > 1626739440001 and tbcol = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol <> 0
|
sql select * from $mt where ts >= 1626739440001 and ts < 1626739500001 and tbcol <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> 0 and ts < now + 5m
|
sql select * from $mt where ts >= 1626739440001 and tbcol <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step5
|
print =============== step5
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol2 <> 0
|
sql select * from $mt where ts >= 1626739440001 and ts < 1626739500001 and tbcol2 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 0 and ts < now + 5m
|
sql select * from $mt where ts >= 1626739440001 and tbcol2 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step6
|
print =============== step6
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 = 1 and tbcol = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 = 1 and tbcol = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 1 and tbcol <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 1 and tbcol <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 = 0 and tbcol = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 = 0 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 <> 0 and tbcol <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 <> 0 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 = 0 and tbcol = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 = 0 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 <> 0 and tbcol <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 <> 0 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol2 <> 0 and tbcol <> 0
|
sql select * from $mt where ts >= 1626739440001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 0 and ts < now + 5m and ts < now + 5m and tbcol <> 0
|
sql select * from $mt where ts >= 1626739440001 and tbcol2 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -246,7 +247,7 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step9
|
print =============== step9
|
||||||
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m
|
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts <= 1626739440001
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 50 then
|
if $data00 != 50 then
|
||||||
return -1
|
return -1
|
||||||
|
@ -272,7 +273,7 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step11
|
print =============== step11
|
||||||
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m and tbcol = 1 group by tgcol
|
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts <= 1626739440001 and tbcol = 1 group by tgcol
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -30,7 +30,7 @@ while $i < 5
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 0, 0, 0 )
|
sql insert into $tb values (1626739200000 + $ms , 0, 0, 0 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -41,7 +41,7 @@ while $i < 10
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 1, 1, 1 )
|
sql insert into $tb values (1626739200000 + $ms , 1, 1, 1 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -53,19 +53,19 @@ if $rows != $totalNum then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select * from $mt where ts < now + 4m
|
sql select * from $mt where ts <= 1626739440001
|
||||||
if $rows != 50 then
|
if $rows != 50 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m
|
sql select * from $mt where ts > 1626739440001
|
||||||
if $rows != 150 then
|
if $rows != 150 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts = now + 4m
|
sql select * from $mt where ts = 1626739440001
|
||||||
if $rows != 0 then
|
if $rows != 0 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m
|
sql select * from $mt where ts >= 1626739440001 and ts < 1626739500001
|
||||||
if $rows != 10 then
|
if $rows != 10 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -141,239 +141,239 @@ if $rows != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step6
|
print =============== step6
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol1 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol1 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol1 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol1 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol1 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol1 <> 0
|
sql select * from $mt where ts >= 1626739440001 and ts < 1626739500001 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 <> 0 and ts < now + 5m
|
sql select * from $mt where ts >= 1626739440001 and tbcol1 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step7
|
print =============== step7
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol2 <> 0
|
sql select * from $mt where ts >= 1626739440001 and ts < 1626739500001 and tbcol2 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 0 and ts < now + 5m
|
sql select * from $mt where ts >= 1626739440001 and tbcol2 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step8
|
print =============== step8
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol3 <> 0
|
sql select * from $mt where ts >= 1626739440001 and ts < 1626739500001 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 0 and ts < now + 5m
|
sql select * from $mt where ts >= 1626739440001 and tbcol3 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step9
|
print =============== step9
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 = 1 and tbcol1 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 = 1 and tbcol1 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 1 and tbcol1 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 1 and tbcol1 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 = 0 and tbcol1 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol2 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol2 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 = 0 and tbcol1 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol2 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 0 and ts < now + 5m and ts < now + 5m and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step10
|
print =============== step10
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 = 1 and tbcol1 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 = 1 and tbcol1 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 1 and tbcol1 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 1 and tbcol1 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 = 0 and tbcol1 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 = 0 and tbcol1 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 0 and ts < now + 5m and ts < now + 5m and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step11
|
print =============== step11
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 = 1 and tbcol2 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 = 1 and tbcol2 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 1 and tbcol2 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 1 and tbcol2 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 = 0 and tbcol2 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 = 0 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 <> 0 and tbcol2 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 <> 0 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 = 0 and tbcol2 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 = 0 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 <> 0 and tbcol2 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 <> 0 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol3 <> 0 and tbcol2 <> 0
|
sql select * from $mt where ts >= 1626739440001 and ts < 1626739500001 and tbcol3 <> 0 and tbcol2 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0
|
sql select * from $mt where ts >= 1626739440001 and tbcol3 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step12
|
print =============== step12
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 <> 1 and tbcol2 <> 1 and tbcol3 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 1 and tbcol2 <> 1 and tbcol3 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts >= 1626739440001 and ts < 1626739500001 and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts >= 1626739440001 and tbcol1 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -405,25 +405,25 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step15
|
print =============== step15
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts <= 1626739440001
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 50 then
|
if $data00 != 50 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
@ -468,25 +468,25 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step18
|
print =============== step18
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -30,7 +30,7 @@ while $i < 5
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 0, 0, 0, 0 )
|
sql insert into $tb values (1626739200000 + $ms , 0, 0, 0, 0 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -41,7 +41,7 @@ while $i < 10
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 1, 1, 1, 1 )
|
sql insert into $tb values (1626739200000 + $ms , 1, 1, 1, 1 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -53,19 +53,19 @@ if $rows != $totalNum then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select * from $mt where ts < now + 4m
|
sql select * from $mt where ts < 1626739440001
|
||||||
if $rows != 50 then
|
if $rows != 50 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m
|
sql select * from $mt where ts > 1626739440001
|
||||||
if $rows != 150 then
|
if $rows != 150 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts = now + 4m
|
sql select * from $mt where ts = 1626739440001
|
||||||
if $rows != 0 then
|
if $rows != 0 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001
|
||||||
if $rows != 10 then
|
if $rows != 10 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -159,375 +159,375 @@ if $rows != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step7
|
print =============== step7
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol1 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol1 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol1 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol1 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol1 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step8
|
print =============== step8
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol2 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol2 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step9
|
print =============== step9
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol3 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step10
|
print =============== step10
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol4 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step11
|
print =============== step11
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 = 1 and tbcol1 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 = 1 and tbcol1 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 1 and tbcol1 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 1 and tbcol1 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 = 0 and tbcol1 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol2 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol2 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 = 0 and tbcol1 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol2 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 0 and ts < now + 5m and ts < now + 5m and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step12
|
print =============== step12
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 = 1 and tbcol1 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 = 1 and tbcol1 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 1 and tbcol1 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 1 and tbcol1 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 = 0 and tbcol1 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 = 0 and tbcol1 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 0 and ts < now + 5m and ts < now + 5m and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step13
|
print =============== step13
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 = 1 and tbcol2 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 = 1 and tbcol2 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 1 and tbcol2 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 1 and tbcol2 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 = 0 and tbcol2 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 = 0 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 <> 0 and tbcol2 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 <> 0 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 = 0 and tbcol2 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 = 0 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 <> 0 and tbcol2 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 <> 0 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol3 <> 0 and tbcol2 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol3 <> 0 and tbcol2 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step14
|
print =============== step14
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 = 1 and tbcol4 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 = 1 and tbcol4 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 1 and tbcol4 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 1 and tbcol4 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 = 0 and tbcol4 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 = 0 and tbcol4 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 <> 0 and tbcol4 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 <> 0 and tbcol4 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 = 0 and tbcol4 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 = 0 and tbcol4 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 <> 0 and tbcol4 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 <> 0 and tbcol4 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol3 <> 0 and tbcol4 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol3 <> 0 and tbcol4 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 0 and ts < now + 5m and ts < now + 5m and tbcol4 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol4 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step15
|
print =============== step15
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 <> 1 and tbcol2 <> 1 and tbcol3 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 1 and tbcol2 <> 1 and tbcol3 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step16
|
print =============== step16
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step17
|
print =============== step17
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol1 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol1 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1 and tbcol1 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1 and tbcol1 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -565,31 +565,31 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step20
|
print =============== step20
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 50 then
|
if $data00 != 50 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
@ -646,31 +646,31 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step23
|
print =============== step23
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -30,7 +30,7 @@ while $i < 5
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 0, 0, 0, 0, 0 )
|
sql insert into $tb values (1626739200000 + $ms , 0, 0, 0, 0, 0 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -41,7 +41,7 @@ while $i < 10
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 1, 1, 1, 1, 1 )
|
sql insert into $tb values (1626739200000 + $ms , 1, 1, 1, 1, 1 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -53,19 +53,19 @@ if $rows != $totalNum then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select * from $mt where ts < now + 4m
|
sql select * from $mt where ts < 1626739440001
|
||||||
if $rows != 50 then
|
if $rows != 50 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m
|
sql select * from $mt where ts > 1626739440001
|
||||||
if $rows != 150 then
|
if $rows != 150 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts = now + 4m
|
sql select * from $mt where ts = 1626739440001
|
||||||
if $rows != 0 then
|
if $rows != 0 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001
|
||||||
if $rows != 10 then
|
if $rows != 10 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -177,443 +177,443 @@ if $rows != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step8
|
print =============== step8
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol1 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol1 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol1 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol1 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol1 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step9
|
print =============== step9
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol2 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol2 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step10
|
print =============== step10
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol3 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step11
|
print =============== step11
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol4 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step12
|
print =============== step12
|
||||||
sql select * from $mt where ts > now + 4m and tbcol5 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol5 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol5 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol5 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol5 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol5 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol5 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol5 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol5 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol5 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol5 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol5 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol5 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol5 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol5 <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol5 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step13
|
print =============== step13
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 = 1 and tbcol1 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 = 1 and tbcol1 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 1 and tbcol1 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 1 and tbcol1 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 = 0 and tbcol1 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol2 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol2 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 = 0 and tbcol1 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol2 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 0 and ts < now + 5m and ts < now + 5m and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step14
|
print =============== step14
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 = 1 and tbcol2 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 = 1 and tbcol2 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 1 and tbcol2 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 1 and tbcol2 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 = 0 and tbcol2 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 = 0 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 <> 0 and tbcol2 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 <> 0 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 = 0 and tbcol2 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 = 0 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 <> 0 and tbcol2 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 <> 0 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol3 <> 0 and tbcol2 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol3 <> 0 and tbcol2 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step15
|
print =============== step15
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 = 1 and tbcol4 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 = 1 and tbcol4 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 1 and tbcol4 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 1 and tbcol4 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 = 0 and tbcol4 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 = 0 and tbcol4 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 <> 0 and tbcol4 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 <> 0 and tbcol4 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 = 0 and tbcol4 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 = 0 and tbcol4 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 <> 0 and tbcol4 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 <> 0 and tbcol4 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol3 <> 0 and tbcol4 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol3 <> 0 and tbcol4 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 0 and ts < now + 5m and ts < now + 5m and tbcol4 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol4 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step16
|
print =============== step16
|
||||||
sql select * from $mt where ts > now + 4m and tbcol5 = 1 and tbcol4 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol5 = 1 and tbcol4 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol5 <> 1 and tbcol4 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol5 <> 1 and tbcol4 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol5 = 0 and tbcol4 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol5 = 0 and tbcol4 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol5 <> 0 and tbcol4 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol5 <> 0 and tbcol4 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol5 = 0 and tbcol4 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol5 = 0 and tbcol4 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol5 <> 0 and tbcol4 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol5 <> 0 and tbcol4 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol5 <> 0 and tbcol4 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol5 <> 0 and tbcol4 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol5 <> 0 and ts < now + 5m and ts < now + 5m and tbcol4 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol5 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol4 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step17
|
print =============== step17
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 <> 1 and tbcol2 <> 1 and tbcol3 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 1 and tbcol2 <> 1 and tbcol3 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step18
|
print =============== step18
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step19
|
print =============== step19
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol1 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol1 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1 and tbcol1 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1 and tbcol1 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step20
|
print =============== step20
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol1 = 1 and tbcol5 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol1 = 1 and tbcol5 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1 and tbcol1 <> 1 and tbcol5 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1 and tbcol1 <> 1 and tbcol5 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0 and tbcol5 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0 and tbcol5 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0 and tbcol5 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0 and tbcol5 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -657,37 +657,37 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step23
|
print =============== step23
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 50 then
|
if $data00 != 50 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
@ -756,37 +756,37 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step26
|
print =============== step26
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -30,7 +30,7 @@ while $i < 5
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 0, 0, 0, 0, 0, 0 )
|
sql insert into $tb values (1626739200000 + $ms , 0, 0, 0, 0, 0, 0 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -41,7 +41,7 @@ while $i < 10
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 1, 1, 1, 1, 1, 1 )
|
sql insert into $tb values (1626739200000 + $ms , 1, 1, 1, 1, 1, 1 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -53,19 +53,19 @@ if $rows != $totalNum then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select * from $mt where ts < now + 4m
|
sql select * from $mt where ts < 1626739440001
|
||||||
if $rows != 50 then
|
if $rows != 50 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m
|
sql select * from $mt where ts > 1626739440001
|
||||||
if $rows != 150 then
|
if $rows != 150 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts = now + 4m
|
sql select * from $mt where ts = 1626739440001
|
||||||
if $rows != 0 then
|
if $rows != 0 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001
|
||||||
if $rows != 10 then
|
if $rows != 10 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -195,545 +195,545 @@ if $rows != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step9
|
print =============== step9
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol1 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol1 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol1 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol1 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol1 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step10
|
print =============== step10
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol2 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol2 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step11
|
print =============== step11
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol3 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step12
|
print =============== step12
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol4 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step13
|
print =============== step13
|
||||||
sql select * from $mt where ts > now + 4m and tbcol5 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol5 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol5 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol5 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol5 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol5 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol5 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol5 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol5 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol5 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol5 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol5 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol5 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol5 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol5 <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol5 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step14
|
print =============== step14
|
||||||
sql select * from $mt where ts > now + 4m and tbcol6 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol6 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol6 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol6 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol6 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol6 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol6 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol6 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol6 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol6 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol6 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol6 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol6 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol6 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol6 <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol6 <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step15
|
print =============== step15
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 = 1 and tbcol1 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 = 1 and tbcol1 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 1 and tbcol1 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 1 and tbcol1 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 = 0 and tbcol1 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol2 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol2 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol2 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 = 0 and tbcol1 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol2 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol2 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol2 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol2 <> 0 and ts < now + 5m and ts < now + 5m and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol2 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step16
|
print =============== step16
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 = 1 and tbcol2 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 = 1 and tbcol2 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 1 and tbcol2 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 1 and tbcol2 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 = 0 and tbcol2 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 = 0 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 <> 0 and tbcol2 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 <> 0 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 = 0 and tbcol2 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 = 0 and tbcol2 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 <> 0 and tbcol2 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 <> 0 and tbcol2 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol3 <> 0 and tbcol2 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol3 <> 0 and tbcol2 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step17
|
print =============== step17
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 = 1 and tbcol4 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 = 1 and tbcol4 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 1 and tbcol4 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 1 and tbcol4 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 = 0 and tbcol4 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 = 0 and tbcol4 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol3 <> 0 and tbcol4 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol3 <> 0 and tbcol4 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 = 0 and tbcol4 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 = 0 and tbcol4 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol3 <> 0 and tbcol4 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol3 <> 0 and tbcol4 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol3 <> 0 and tbcol4 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol3 <> 0 and tbcol4 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol3 <> 0 and ts < now + 5m and ts < now + 5m and tbcol4 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol3 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol4 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step18
|
print =============== step18
|
||||||
sql select * from $mt where ts > now + 4m and tbcol5 = 1 and tbcol4 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol5 = 1 and tbcol4 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol5 <> 1 and tbcol4 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol5 <> 1 and tbcol4 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol5 = 0 and tbcol4 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol5 = 0 and tbcol4 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol5 <> 0 and tbcol4 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol5 <> 0 and tbcol4 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol5 = 0 and tbcol4 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol5 = 0 and tbcol4 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol5 <> 0 and tbcol4 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol5 <> 0 and tbcol4 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol5 <> 0 and tbcol4 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol5 <> 0 and tbcol4 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol5 <> 0 and ts < now + 5m and ts < now + 5m and tbcol4 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol5 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol4 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step19
|
print =============== step19
|
||||||
sql select * from $mt where ts > now + 4m and tbcol5 = 1 and tbcol6 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol5 = 1 and tbcol6 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol5 <> 1 and tbcol6 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol5 <> 1 and tbcol6 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol5 = 0 and tbcol6 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol5 = 0 and tbcol6 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol5 <> 0 and tbcol6 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol5 <> 0 and tbcol6 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol5 = 0 and tbcol6 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol5 = 0 and tbcol6 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol5 <> 0 and tbcol6 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol5 <> 0 and tbcol6 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol5 <> 0 and tbcol6 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol5 <> 0 and tbcol6 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol5 <> 0 and ts < now + 5m and ts < now + 5m and tbcol6 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol5 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol6 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step20
|
print =============== step20
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 <> 1 and tbcol2 <> 1 and tbcol3 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 1 and tbcol2 <> 1 and tbcol3 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 = 0 and tbcol2 = 0 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol1 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol1 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol1 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step21
|
print =============== step21
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0 and tbcol3 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol3 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step22
|
print =============== step22
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol1 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol1 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1 and tbcol1 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1 and tbcol1 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step23
|
print =============== step23
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol1 = 1 and tbcol5 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol1 = 1 and tbcol5 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1 and tbcol1 <> 1 and tbcol5 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1 and tbcol1 <> 1 and tbcol5 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0 and tbcol5 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0 and tbcol5 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0 and tbcol5 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0 and tbcol5 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step24
|
print =============== step24
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol1 = 1 and tbcol5 = 1 and tbcol6 = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol1 = 1 and tbcol5 = 1 and tbcol6 = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1 and tbcol1 <> 1 and tbcol5 <> 1 and tbcol6 <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 1 and tbcol2 <> 1 and tbcol3 <> 1 and tbcol1 <> 1 and tbcol5 <> 1 and tbcol6 <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0 and tbcol5 = 0 and tbcol6 = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0 and tbcol5 = 0 and tbcol6 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0 and tbcol6 <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0 and tbcol6 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0 and tbcol5 = 0 and tbcol6 = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 = 0 and tbcol2 = 0 and tbcol3 = 0 and tbcol1 = 0 and tbcol5 = 0 and tbcol6 = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0 and tbcol6 <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0 and tbcol6 <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0 and tbcol6 <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol4 <> 0 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0 and tbcol6 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol4 <> 0 and ts < now + 5m and ts < now + 5m and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0 and tbcol6 <> 0
|
sql select * from $mt where ts > 1626739440001 and tbcol4 <> 0 and ts < 1626739500001 and ts < 1626739500001 and tbcol2 <> 0 and tbcol3 <> 0 and tbcol1 <> 0 and tbcol5 <> 0 and tbcol6 <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -783,43 +783,43 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step27
|
print =============== step27
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 50 then
|
if $data00 != 50 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1 and tbcol6 = 1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1 and tbcol6 = 1
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
@ -900,43 +900,43 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step30
|
print =============== step30
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < now + 4m and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1 and tbcol6 = 1 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where ts < 1626739440001 and tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1 and tbcol6 = 1 group by tgcol2
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -30,7 +30,7 @@ while $i < 5
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 0 )
|
sql insert into $tb values (1626739200000 + $ms , 0 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -41,7 +41,7 @@ while $i < 10
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 1 )
|
sql insert into $tb values (1626739200000 + $ms , 1 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -82,35 +82,35 @@ if $rows != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step3
|
print =============== step3
|
||||||
sql select * from $mt where ts > now + 4m and tbcol = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -139,7 +139,7 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step7
|
print =============== step7
|
||||||
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m and tbcol = 1 group by tgcol
|
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1626739440001 and tbcol = 1 group by tgcol
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -30,7 +30,7 @@ while $i < 5
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , '0' )
|
sql insert into $tb values (1626739200000 + $ms , '0' )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -41,7 +41,7 @@ while $i < 10
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , '1' )
|
sql insert into $tb values (1626739200000 + $ms , '1' )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -55,14 +55,14 @@ if $rows != 100 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select * from $mt where ts > now + 4m and tbcol = '1'
|
sql select * from $mt where ts > 1626739440001 and tbcol = '1'
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where tbcol = '1'
|
print select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where tbcol = '1'
|
||||||
sql_error select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where tbcol = '1' group by tgcol
|
sql_error select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where tbcol = '1' group by tgcol
|
||||||
sql_error select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m and tbcol = '1' group by tgcol
|
sql_error select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1626739440001 and tbcol = '1' group by tgcol
|
||||||
sql_error select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where tbcol = '1' interval(1d) group by tgcol
|
sql_error select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where tbcol = '1' interval(1d) group by tgcol
|
||||||
|
|
||||||
#can't filter binary fields
|
#can't filter binary fields
|
||||||
|
|
|
@ -30,7 +30,7 @@ while $i < 5
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 0 )
|
sql insert into $tb values (1626739200000 + $ms , 0 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -41,7 +41,7 @@ while $i < 10
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 1 )
|
sql insert into $tb values (1626739200000 + $ms , 1 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -82,35 +82,35 @@ if $rows != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step3
|
print =============== step3
|
||||||
sql select * from $mt where ts > now + 4m and tbcol = true
|
sql select * from $mt where ts > 1626739440001 and tbcol = true
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> true
|
sql select * from $mt where ts > 1626739440001 and tbcol <> true
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol = false
|
sql select * from $mt where ts < 1626739440001 and tbcol = false
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol <> false
|
sql select * from $mt where ts < 1626739440001 and tbcol <> false
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol = false
|
sql select * from $mt where ts <= 1626739440001 and tbcol = false
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol <> false
|
sql select * from $mt where ts <= 1626739440001 and tbcol <> false
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol <> false
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol <> false
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> false and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol <> false and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -137,7 +137,7 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step7
|
print =============== step7
|
||||||
sql select count(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m and tbcol = true group by tgcol
|
sql select count(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1626739440001 and tbcol = true group by tgcol
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -30,7 +30,7 @@ while $i < 5
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 0 )
|
sql insert into $tb values (1626739200000 + $ms , 0 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -41,7 +41,7 @@ while $i < 10
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 1 )
|
sql insert into $tb values (1626739200000 + $ms , 1 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -82,35 +82,35 @@ if $rows != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step3
|
print =============== step3
|
||||||
sql select * from $mt where ts > now + 4m and tbcol = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -137,7 +137,7 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step7
|
print =============== step7
|
||||||
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m and tbcol = 1 group by tgcol
|
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1626739440001 and tbcol = 1 group by tgcol
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -30,7 +30,7 @@ while $i < 5
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 0 )
|
sql insert into $tb values (1626739200000 + $ms , 0 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -41,7 +41,7 @@ while $i < 10
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 1 )
|
sql insert into $tb values (1626739200000 + $ms , 1 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -82,35 +82,35 @@ if $rows != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step3
|
print =============== step3
|
||||||
sql select * from $mt where ts > now + 4m and tbcol = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -137,7 +137,7 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step7
|
print =============== step7
|
||||||
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m and tbcol = 1 group by tgcol
|
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1626739440001 and tbcol = 1 group by tgcol
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -30,7 +30,7 @@ while $i < 5
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 0 )
|
sql insert into $tb values (1626739200000 + $ms , 0 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -41,7 +41,7 @@ while $i < 10
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 1 )
|
sql insert into $tb values (1626739200000 + $ms , 1 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -82,35 +82,35 @@ if $rows != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step3
|
print =============== step3
|
||||||
sql select * from $mt where ts > now + 4m and tbcol = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -137,7 +137,7 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step7
|
print =============== step7
|
||||||
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m and tbcol = 1 group by tgcol
|
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1626739440001 and tbcol = 1 group by tgcol
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -25,7 +25,7 @@ sql create table $tb (ts timestamp, tbcol int)
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , $x )
|
sql insert into $tb values (1626739200000 + $ms , $x )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
|
|
||||||
|
@ -111,18 +111,18 @@ if $rows != 0 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step3
|
print =============== step3
|
||||||
sql select * from $tb where ts < now + 4m
|
sql select * from $tb where ts < 1626739440001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select * from $tb where tbcol = 10 and ts < now + 4m
|
sql select * from $tb where tbcol = 10 and ts < 1626739440001
|
||||||
print select * from $tb where tbcol = 10 and ts < now + 4m
|
print select * from $tb where tbcol = 10 and ts < 1626739440001
|
||||||
if $rows != 0 then
|
if $rows != 0 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select * from $tb where tbcol = 4 and ts < now + 4m order by ts desc
|
sql select * from $tb where tbcol = 4 and ts < 1626739440001 order by ts desc
|
||||||
if $rows != 1 then
|
if $rows != 1 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -130,7 +130,7 @@ if $data01 != 4 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select * from $tb where tbcol < 10 and ts < now + 4m order by ts desc
|
sql select * from $tb where tbcol < 10 and ts < 1626739440001 order by ts desc
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -138,7 +138,7 @@ if $data01 != 4 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select * from $tb where tbcol < 10 and ts > now + 4m and ts < now + 5m order by ts desc
|
sql select * from $tb where tbcol < 10 and ts > 1626739440001 and ts < 1626739500001 order by ts desc
|
||||||
print $rows $data00 $data01
|
print $rows $data00 $data01
|
||||||
if $rows != 1 then
|
if $rows != 1 then
|
||||||
return -1
|
return -1
|
||||||
|
@ -183,27 +183,27 @@ sql select count(*) from $tb where tbcol < 10 and tbcol > 5 order by ts asc -x s
|
||||||
step4:
|
step4:
|
||||||
|
|
||||||
print =============== step5
|
print =============== step5
|
||||||
sql select count(*) from $tb where ts < now + 4m
|
sql select count(*) from $tb where ts < 1626739440001
|
||||||
if $data00 != 5 then
|
if $data00 != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
#sql select count(*) from $tb where tbcol = 10 and ts < now + 4m
|
#sql select count(*) from $tb where tbcol = 10 and ts < 1626739440001
|
||||||
#if $data00 != 0 then
|
#if $data00 != 0 then
|
||||||
# return -1
|
# return -1
|
||||||
#endi
|
#endi
|
||||||
|
|
||||||
sql select count(*) from $tb where tbcol = 4 and ts < now + 4m
|
sql select count(*) from $tb where tbcol = 4 and ts < 1626739440001
|
||||||
if $data00 != 1 then
|
if $data00 != 1 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(*) from $tb where tbcol < 10 and ts < now + 4m
|
sql select count(*) from $tb where tbcol < 10 and ts < 1626739440001
|
||||||
if $data00 != 5 then
|
if $data00 != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select count(*) from $tb where tbcol < 10 and ts > now + 4m and ts < now + 5m
|
sql select count(*) from $tb where tbcol < 10 and ts > 1626739440001 and ts < 1626739500001
|
||||||
if $data00 != 1 then
|
if $data00 != 1 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
|
@ -30,7 +30,7 @@ while $i < 5
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 0 )
|
sql insert into $tb values (1626739200000 + $ms , 0 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -41,7 +41,7 @@ while $i < 10
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 1 )
|
sql insert into $tb values (1626739200000 + $ms , 1 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -82,35 +82,35 @@ if $rows != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step3
|
print =============== step3
|
||||||
sql select * from $mt where ts > now + 4m and tbcol = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -137,7 +137,7 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step7
|
print =============== step7
|
||||||
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m and tbcol = 1 group by tgcol
|
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1626739440001 and tbcol = 1 group by tgcol
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -31,7 +31,7 @@ while $i < 5
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 0 )
|
sql insert into $tb values (1626739200000 + $ms , 0 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -42,7 +42,7 @@ while $i < 10
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 1 )
|
sql insert into $tb values (1626739200000 + $ms , 1 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -83,35 +83,35 @@ if $rows != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step3
|
print =============== step3
|
||||||
sql select * from $mt where ts > now + 4m and tbcol = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -138,7 +138,7 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step7
|
print =============== step7
|
||||||
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m and tbcol = 1 group by tgcol
|
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1626739440001 and tbcol = 1 group by tgcol
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -31,11 +31,11 @@ while $i < 5
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 0 )
|
sql insert into $tb values (1626739200000 + $ms , 0 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
sql_error insert into $tb values (now + $ms , -10)
|
sql_error insert into $tb values (1626739200000 + $ms , -10)
|
||||||
sql_error insert into $tb values (now + $ms , -1000)
|
sql_error insert into $tb values (1626739200000 + $ms , -1000)
|
||||||
sql_error insert into $tb values (now + $ms , -10000000)
|
sql_error insert into $tb values (1626739200000 + $ms , -10000000)
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
endw
|
endw
|
||||||
|
@ -45,7 +45,7 @@ while $i < 10
|
||||||
$x = 0
|
$x = 0
|
||||||
while $x < $rowNum
|
while $x < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now + $ms , 1 )
|
sql insert into $tb values (1626739200000 + $ms , 1 )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
endw
|
endw
|
||||||
$i = $i + 1
|
$i = $i + 1
|
||||||
|
@ -86,35 +86,35 @@ if $rows != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step3
|
print =============== step3
|
||||||
sql select * from $mt where ts > now + 4m and tbcol = 1
|
sql select * from $mt where ts > 1626739440001 and tbcol = 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> 1
|
sql select * from $mt where ts > 1626739440001 and tbcol <> 1
|
||||||
if $rows != 75 then
|
if $rows != 75 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol = 0
|
sql select * from $mt where ts < 1626739440001 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts < now + 4m and tbcol <> 0
|
sql select * from $mt where ts < 1626739440001 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol = 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol = 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts <= now + 4m and tbcol <> 0
|
sql select * from $mt where ts <= 1626739440001 and tbcol <> 0
|
||||||
if $rows != 25 then
|
if $rows != 25 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and ts < now + 5m and tbcol <> 0
|
sql select * from $mt where ts > 1626739440001 and ts < 1626739500001 and tbcol <> 0
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
sql select * from $mt where ts > now + 4m and tbcol <> 0 and ts < now + 5m
|
sql select * from $mt where ts > 1626739440001 and tbcol <> 0 and ts < 1626739500001
|
||||||
if $rows != 5 then
|
if $rows != 5 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
@ -143,7 +143,7 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step7
|
print =============== step7
|
||||||
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < now + 4m and tbcol = 1 group by tgcol
|
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where ts < 1626739440001 and tbcol = 1 group by tgcol
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 25 then
|
if $data00 != 25 then
|
||||||
return -1
|
return -1
|
||||||
|
|
|
@ -20,7 +20,7 @@ print =============== step2
|
||||||
sql create database d4 precision 'us'
|
sql create database d4 precision 'us'
|
||||||
sql use d4
|
sql use d4
|
||||||
sql create table t1 (ts timestamp, i int)
|
sql create table t1 (ts timestamp, i int)
|
||||||
sql insert into d4.t1 values(now, 1)
|
sql insert into d4.t1 values(1626739200000, 1)
|
||||||
|
|
||||||
sql create table d4.s001 as select count(cpu_taosd), count(cpu_system), avg(cpu_taosd), avg(cpu_system), sum(cpu_taosd), max(cpu_taosd), min(cpu_taosd) from log.dn_192_168_0_1 interval(5s)
|
sql create table d4.s001 as select count(cpu_taosd), count(cpu_system), avg(cpu_taosd), avg(cpu_system), sum(cpu_taosd), max(cpu_taosd), min(cpu_taosd) from log.dn_192_168_0_1 interval(5s)
|
||||||
sql create table d4.s002 as select count(mem_taosd), count(mem_system), avg(mem_taosd), avg(mem_system), sum(mem_taosd), max(mem_taosd), min(mem_taosd) from log.dn_192_168_0_1 interval(5s)
|
sql create table d4.s002 as select count(mem_taosd), count(mem_system), avg(mem_taosd), avg(mem_system), sum(mem_taosd), max(mem_taosd), min(mem_taosd) from log.dn_192_168_0_1 interval(5s)
|
||||||
|
|
|
@ -23,7 +23,7 @@ print =============== step2
|
||||||
sql create database d4 precision 'us'
|
sql create database d4 precision 'us'
|
||||||
sql use d4
|
sql use d4
|
||||||
sql create table t1 (ts timestamp, i int)
|
sql create table t1 (ts timestamp, i int)
|
||||||
sql insert into d4.t1 values(now, 1)
|
sql insert into d4.t1 values(1626739200000, 1)
|
||||||
|
|
||||||
sql create table d4.s1 as select count(cpu_taosd), count(cpu_system), avg(cpu_taosd), avg(cpu_system), sum(cpu_taosd), max(cpu_taosd), min(cpu_taosd), stddev(cpu_taosd), count(*) as c1, count(*) as c2, count(*) as c3, count(*) as c4, count(*) as c5, count(*) as c6, count(*) as c7, count(*) as c8, count(*) as c9, count(*) as c10, count(*) as c11, count(*) as c12, count(*) as c13, count(*) as c14, count(*) as c15, count(*) as c16, count(*) as c17, count(*) as c18, count(*) as c19, count(*) as c20, count(*) as c21, count(*) as c22, count(*) as c23, count(*) as c24, count(*) as c25, count(*) as c26, count(*) as c27, count(*) as c28, count(*) as c29, count(*) as c30 from log.dn_192_168_0_1 interval(5s)
|
sql create table d4.s1 as select count(cpu_taosd), count(cpu_system), avg(cpu_taosd), avg(cpu_system), sum(cpu_taosd), max(cpu_taosd), min(cpu_taosd), stddev(cpu_taosd), count(*) as c1, count(*) as c2, count(*) as c3, count(*) as c4, count(*) as c5, count(*) as c6, count(*) as c7, count(*) as c8, count(*) as c9, count(*) as c10, count(*) as c11, count(*) as c12, count(*) as c13, count(*) as c14, count(*) as c15, count(*) as c16, count(*) as c17, count(*) as c18, count(*) as c19, count(*) as c20, count(*) as c21, count(*) as c22, count(*) as c23, count(*) as c24, count(*) as c25, count(*) as c26, count(*) as c27, count(*) as c28, count(*) as c29, count(*) as c30 from log.dn_192_168_0_1 interval(5s)
|
||||||
|
|
||||||
|
|
|
@ -37,11 +37,11 @@ while $i < $tbNum
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
sql create table $tb using $mt tags( $i )
|
sql create table $tb using $mt tags( $i )
|
||||||
|
|
||||||
$x = -1440
|
$x = -400
|
||||||
$y = 0
|
$y = 0
|
||||||
while $y < $rowNum
|
while $y < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now $ms , $y , $y )
|
sql insert into $tb values (1626739200000 $ms , $y , $y )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
$y = $y + 1
|
$y = $y + 1
|
||||||
endw
|
endw
|
||||||
|
@ -143,14 +143,14 @@ $st = $stPrefix . la
|
||||||
sql create table $st as select last(tbcol) from $mt interval(1d)
|
sql create table $st as select last(tbcol) from $mt interval(1d)
|
||||||
|
|
||||||
print =============== step11 wh
|
print =============== step11 wh
|
||||||
sql select count(tbcol) from $mt where ts < now + 4m interval(1d)
|
sql select count(tbcol) from $mt where ts < 1626739440001 interval(1d)
|
||||||
print select count(tbcol) from $mt where ts < now + 4m interval(1d) ===> $data00 $data01
|
print select count(tbcol) from $mt where ts < 1626739440000 interval(1d) ===> $data00 $data01
|
||||||
if $data01 != 200 then
|
if $data01 != 200 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
$st = $stPrefix . wh
|
$st = $stPrefix . wh
|
||||||
#sql create table $st as select count(tbcol) from $mt where ts < now + 4m interval(1d)
|
#sql create table $st as select count(tbcol) from $mt where ts < 1626739200000 + 4m interval(1d)
|
||||||
|
|
||||||
print =============== step12 as
|
print =============== step12 as
|
||||||
sql select count(tbcol) from $mt interval(1d)
|
sql select count(tbcol) from $mt interval(1d)
|
||||||
|
|
|
@ -34,11 +34,11 @@ while $i < 10
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
sql create table $tb using $mt tags( 0 )
|
sql create table $tb using $mt tags( 0 )
|
||||||
|
|
||||||
$x = -1440
|
$x = -400
|
||||||
$y = 0
|
$y = 0
|
||||||
while $y < $rowNum
|
while $y < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now $ms , $y , $y )
|
sql insert into $tb values (1626739200000 $ms , $y , $y )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
$y = $y + 1
|
$y = $y + 1
|
||||||
endw
|
endw
|
||||||
|
@ -114,11 +114,11 @@ while $i < 5
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
sql create table $tb using $mt tags( 0 )
|
sql create table $tb using $mt tags( 0 )
|
||||||
|
|
||||||
$x = -1440
|
$x = -400
|
||||||
$y = 0
|
$y = 0
|
||||||
while $y < $rowNum
|
while $y < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now $ms , $y , $y )
|
sql insert into $tb values (1626739200000 $ms , $y , $y )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
$y = $y + 1
|
$y = $y + 1
|
||||||
endw
|
endw
|
||||||
|
|
|
@ -34,11 +34,11 @@ while $i < $tbNum
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
sql create table $tb using $mt tags( $i )
|
sql create table $tb using $mt tags( $i )
|
||||||
|
|
||||||
$x = -1440
|
$x = -400
|
||||||
$y = 0
|
$y = 0
|
||||||
while $y < $rowNum
|
while $y < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now $ms , $y , $y )
|
sql insert into $tb values (1626739200000 $ms , $y , $y )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
$y = $y + 1
|
$y = $y + 1
|
||||||
endw
|
endw
|
||||||
|
@ -139,11 +139,11 @@ while $i < $tbNum
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
sql create table $tb using $mt tags( $i )
|
sql create table $tb using $mt tags( $i )
|
||||||
|
|
||||||
$x = -1440
|
$x = -400
|
||||||
$y = 0
|
$y = 0
|
||||||
while $y < $rowNum
|
while $y < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now $ms , $y , $y )
|
sql insert into $tb values (1626739200000 $ms , $y , $y )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
$y = $y + 1
|
$y = $y + 1
|
||||||
endw
|
endw
|
||||||
|
|
|
@ -37,7 +37,7 @@ while $i < $tbNum
|
||||||
$y = 0
|
$y = 0
|
||||||
while $y < $rowNum
|
while $y < $rowNum
|
||||||
$ms = $x . s
|
$ms = $x . s
|
||||||
sql insert into $tb values (now + $ms , $y , $y )
|
sql insert into $tb values (1626739200000 + $ms , $y , $y )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
$y = $y + 1
|
$y = $y + 1
|
||||||
endw
|
endw
|
||||||
|
|
|
@ -34,11 +34,11 @@ while $i < $tbNum
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
sql create table $tb using $mt tags( $i )
|
sql create table $tb using $mt tags( $i )
|
||||||
|
|
||||||
$x = -1440
|
$x = -400
|
||||||
$y = 0
|
$y = 0
|
||||||
while $y < $rowNum
|
while $y < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now $ms , $y , $y )
|
sql insert into $tb values (1626739200000 $ms , $y , $y )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
$y = $y + 1
|
$y = $y + 1
|
||||||
endw
|
endw
|
||||||
|
|
|
@ -37,11 +37,11 @@ while $i < $tbNum
|
||||||
$tb = $tbPrefix . $i
|
$tb = $tbPrefix . $i
|
||||||
sql create table $tb using $mt tags( $i )
|
sql create table $tb using $mt tags( $i )
|
||||||
|
|
||||||
$x = -1440
|
$x = -400
|
||||||
$y = 0
|
$y = 0
|
||||||
while $y < $rowNum
|
while $y < $rowNum
|
||||||
$ms = $x . m
|
$ms = $x . m
|
||||||
sql insert into $tb values (now $ms , $y , $y )
|
sql insert into $tb values (1626739200000 $ms , $y , $y )
|
||||||
$x = $x + 1
|
$x = $x + 1
|
||||||
$y = $y + 1
|
$y = $y + 1
|
||||||
endw
|
endw
|
||||||
|
@ -176,14 +176,14 @@ $st = $stPrefix . pe
|
||||||
sql create table $st as select percentile(tbcol, 1) from $tb interval(1d)
|
sql create table $st as select percentile(tbcol, 1) from $tb interval(1d)
|
||||||
|
|
||||||
print =============== step14 wh
|
print =============== step14 wh
|
||||||
sql select count(tbcol) from $tb where ts < now + 4m interval(1d)
|
sql select count(tbcol) from $tb where ts < 1626739440001 interval(1d)
|
||||||
print select count(tbcol) from $tb where ts < now + 4m interval(1d) ===> $data00 $data01
|
print select count(tbcol) from $tb where ts < 1626739440001 interval(1d) ===> $data00 $data01
|
||||||
if $data01 != $rowNum then
|
if $data01 != $rowNum then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
$st = $stPrefix . wh
|
$st = $stPrefix . wh
|
||||||
#sql create table $st as select count(tbcol) from $tb where ts < now + 4m interval(1d)
|
#sql create table $st as select count(tbcol) from $tb where ts < 1626739200000 + 4m interval(1d)
|
||||||
|
|
||||||
print =============== step15 as
|
print =============== step15 as
|
||||||
sql select count(tbcol) from $tb interval(1d)
|
sql select count(tbcol) from $tb interval(1d)
|
||||||
|
|
|
@ -1,63 +0,0 @@
|
||||||
system sh/stop_dnodes.sh
|
|
||||||
|
|
||||||
system sh/deploy.sh -n dnode1 -i 1
|
|
||||||
system sh/cfg.sh -n dnode1 -c walLevel -v 1
|
|
||||||
system sh/exec.sh -n dnode1 -s start
|
|
||||||
|
|
||||||
sleep 2000
|
|
||||||
sql connect
|
|
||||||
|
|
||||||
print =================== step1
|
|
||||||
sql create database db
|
|
||||||
sql use db
|
|
||||||
sql create table mt (ts timestamp, k int, h binary(20), t bigint, s float, f double, x smallint, y tinyint, z bool) tags (a int, b binary(20), c bigint)
|
|
||||||
sql create table tb using mt tags (0, '1', 2)
|
|
||||||
|
|
||||||
sql insert into tb values(now -200d, 200, '1', 2, 3, 4, 5, 6, true);
|
|
||||||
sql insert into tb values(now -100d, 100, '1', 2, 3, 4, 5, 6, true);
|
|
||||||
sql insert into tb values(now -30d, 30, '1', 2, 3, 4, 5, 6, true);
|
|
||||||
sql insert into tb values(now -20d, 20, '1', 2, 3, 4, 5, 6, true);
|
|
||||||
sql insert into tb values(now -10d, 10, '1', 2, 3, 4, 5, 6, true);
|
|
||||||
sql insert into tb values(now -5d, 5, '1', 2, 3, 4, 5, 6, true);
|
|
||||||
sql insert into tb values(now -1d, 1, '1', 2, 3, 4, 5, 6, true);
|
|
||||||
sql insert into tb values(now, 0, '1', 2, 3, 4, 5, 6, true);
|
|
||||||
|
|
||||||
sql select * from db.mt
|
|
||||||
if $rows != 8 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
|
|
||||||
sql select * from db.tb
|
|
||||||
if $rows != 8 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
|
|
||||||
sql select count(*) from db.mt
|
|
||||||
if $data00 != 8 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
|
|
||||||
sql select count(*), last(ts), min(k), max(k), avg(k) from db.mt where a=0 and ts>="2016-4-29 8:0:0" and ts < "2018-7-18 8:9:0" interval(1d) fill(value, 1)
|
|
||||||
sql select count(*), last(ts), min(k), max(k), avg(k) from db.mt where a=0 and ts>="2016-4-29 8:0:0" and ts < "2018-7-18 8:9:0" interval(1d) fill(value, 1)
|
|
||||||
|
|
||||||
print =================== step2
|
|
||||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
|
||||||
sleep 3000
|
|
||||||
system sh/exec.sh -n dnode1 -s start
|
|
||||||
sleep 2000
|
|
||||||
|
|
||||||
print =================== step3
|
|
||||||
sql select * from db.mt
|
|
||||||
if $rows != 8 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
|
|
||||||
sql select * from db.tb
|
|
||||||
if $rows != 8 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
||||||
|
|
||||||
sql select count(*) from db.mt
|
|
||||||
if $data00 != 8 then
|
|
||||||
return -1
|
|
||||||
endi
|
|
|
@ -93,31 +93,7 @@ cd ../../../debug; make
|
||||||
#======================b1-end===============
|
#======================b1-end===============
|
||||||
#======================b2-start===============
|
#======================b2-start===============
|
||||||
|
|
||||||
./test.sh -f general/tag/3.sim
|
|
||||||
./test.sh -f general/tag/4.sim
|
|
||||||
./test.sh -f general/tag/5.sim
|
|
||||||
./test.sh -f general/tag/6.sim
|
|
||||||
./test.sh -f general/tag/add.sim
|
|
||||||
./test.sh -f general/tag/bigint.sim
|
|
||||||
./test.sh -f general/tag/binary_binary.sim
|
|
||||||
./test.sh -f general/tag/binary.sim
|
|
||||||
./test.sh -f general/tag/bool_binary.sim
|
|
||||||
./test.sh -f general/tag/bool_int.sim
|
|
||||||
./test.sh -f general/tag/bool.sim
|
|
||||||
./test.sh -f general/tag/change.sim
|
|
||||||
./test.sh -f general/tag/column.sim
|
|
||||||
./test.sh -f general/tag/commit.sim
|
|
||||||
./test.sh -f general/tag/create.sim
|
|
||||||
./test.sh -f general/tag/delete.sim
|
|
||||||
./test.sh -f general/tag/double.sim
|
|
||||||
./test.sh -f general/tag/filter.sim
|
|
||||||
./test.sh -f general/tag/float.sim
|
|
||||||
./test.sh -f general/tag/int_binary.sim
|
|
||||||
./test.sh -f general/tag/int_float.sim
|
|
||||||
./test.sh -f general/tag/int.sim
|
|
||||||
./test.sh -f general/tag/set.sim
|
|
||||||
./test.sh -f general/tag/smallint.sim
|
|
||||||
./test.sh -f general/tag/tinyint.sim
|
|
||||||
./test.sh -f general/wal/sync.sim
|
./test.sh -f general/wal/sync.sim
|
||||||
./test.sh -f general/wal/kill.sim
|
./test.sh -f general/wal/kill.sim
|
||||||
./test.sh -f general/wal/maxtables.sim
|
./test.sh -f general/wal/maxtables.sim
|
||||||
|
@ -397,7 +373,6 @@ cd ../../../debug; make
|
||||||
./test.sh -f general/table/delete_writing.sim
|
./test.sh -f general/table/delete_writing.sim
|
||||||
./test.sh -f general/table/describe.sim
|
./test.sh -f general/table/describe.sim
|
||||||
./test.sh -f general/table/double.sim
|
./test.sh -f general/table/double.sim
|
||||||
./test.sh -f general/table/fill.sim
|
|
||||||
./test.sh -f general/table/float.sim
|
./test.sh -f general/table/float.sim
|
||||||
./test.sh -f general/table/int.sim
|
./test.sh -f general/table/int.sim
|
||||||
./test.sh -f general/table/limit.sim
|
./test.sh -f general/table/limit.sim
|
||||||
|
|
Loading…
Reference in New Issue