adjust case
This commit is contained in:
parent
3bfc7b3486
commit
3b0d1480f7
|
@ -447,44 +447,44 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step17
|
print =============== step17
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 group by tgcol1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 group by tgcol1 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 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 tbcol1 = 1 and tbcol2 = 1 group by tgcol1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 group by tgcol1 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 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 tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 group by tgcol1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 group by tgcol1 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 then
|
||||||
return -1
|
return -1
|
||||||
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 < 1626739440001 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 order by count(tbcol1) desc
|
||||||
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 < 1626739440001 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 order by count(tbcol1) desc
|
||||||
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 < 1626739440001 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 order by count(tbcol1) desc
|
||||||
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 < 1626739440001 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 order by count(tbcol1) desc
|
||||||
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
|
||||||
|
|
|
@ -619,56 +619,56 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step22
|
print =============== step22
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 group by tgcol1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 group by tgcol1 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 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 tbcol1 = 1 and tbcol2 = 1 group by tgcol1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 group by tgcol1 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 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 tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 group by tgcol1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 group by tgcol1 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 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 tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 group by tgcol1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 group by tgcol1 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 then
|
||||||
return -1
|
return -1
|
||||||
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 < 1626739440001 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 order by count(tbcol1) desc
|
||||||
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 < 1626739440001 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 order by count(tbcol1) desc
|
||||||
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 < 1626739440001 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 order by count(tbcol1) desc
|
||||||
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 < 1626739440001 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 order by count(tbcol1) desc
|
||||||
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 < 1626739440001 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 order by count(tbcol1) desc
|
||||||
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
|
||||||
|
|
|
@ -824,117 +824,117 @@ if $data00 != 25 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step28
|
print =============== step28
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt group by tgcol1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt group by tgcol1 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 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 group by tgcol2
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt group by tgcol2 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 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 group by tgcol3
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt group by tgcol3 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 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 group by tgcol4
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt group by tgcol4 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 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 group by tgcol5
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt group by tgcol5 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 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 group by tgcol6
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt group by tgcol6 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step29
|
print =============== step29
|
||||||
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 group by tgcol1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 group by tgcol1 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 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 tbcol1 = 1 and tbcol2 = 1 group by tgcol1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 group by tgcol1 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 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 tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 group by tgcol1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 group by tgcol1 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 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 tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 group by tgcol1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 group by tgcol1 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 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 tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1 group by tgcol1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1 group by tgcol1 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 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 tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1 and tbcol6 = 1 group by tgcol1
|
sql select count(tbcol1), avg(tbcol1), sum(tbcol1), min(tbcol1), max(tbcol1), first(tbcol1), last(tbcol1) from $mt where tbcol1 = 1 and tbcol2 = 1 and tbcol3 = 1 and tbcol4 = 1 and tbcol5 = 1 and tbcol6 = 1 group by tgcol1 order by count(tbcol1) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 then
|
||||||
return -1
|
return -1
|
||||||
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 < 1626739440001 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 order by count(tbcol1) desc
|
||||||
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 < 1626739440001 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 order by count(tbcol1) desc
|
||||||
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 < 1626739440001 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 order by count(tbcol1) desc
|
||||||
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 < 1626739440001 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 order by count(tbcol1) desc
|
||||||
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 < 1626739440001 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 order by count(tbcol1) desc
|
||||||
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 < 1626739440001 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 order by count(tbcol1) desc
|
||||||
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 < 1626739440001 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 order by count(tbcol1) desc
|
||||||
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
|
||||||
|
|
|
@ -127,7 +127,7 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step6
|
print =============== step6
|
||||||
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where tbcol = 1 group by tgcol
|
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where tbcol = 1 group by tgcol order by count(tbcol) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
print $data10 $data11 $data12 $data13 $data14 $data15 $data16
|
print $data10 $data11 $data12 $data13 $data14 $data15 $data16
|
||||||
if $data00 != 100 then
|
if $data00 != 100 then
|
||||||
|
@ -136,7 +136,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 < 1626739440001 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 order by count(tbcol) desc
|
||||||
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
|
||||||
|
|
|
@ -127,14 +127,14 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step6
|
print =============== step6
|
||||||
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where tbcol = 1 group by tgcol
|
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where tbcol = 1 group by tgcol order by count(tbcol) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 then
|
||||||
return -1
|
return -1
|
||||||
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 < 1626739440001 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 order by count(tbcol) desc
|
||||||
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
|
||||||
|
|
|
@ -128,14 +128,14 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step6
|
print =============== step6
|
||||||
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where tbcol = 1 group by tgcol
|
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where tbcol = 1 group by tgcol order by count(tbcol) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
if $data00 != 100 then
|
if $data00 != 100 then
|
||||||
return -1
|
return -1
|
||||||
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 < 1626739440001 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 order by count(tbcol) desc
|
||||||
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
|
||||||
|
|
|
@ -131,7 +131,7 @@ if $data00 != 100 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
print =============== step6
|
print =============== step6
|
||||||
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where tbcol = 1 group by tgcol
|
sql select count(tbcol), avg(tbcol), sum(tbcol), min(tbcol), max(tbcol), first(tbcol), last(tbcol) from $mt where tbcol = 1 group by tgcol order by count(tbcol) desc
|
||||||
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
print $data00 $data01 $data02 $data03 $data04 $data05 $data06
|
||||||
print $data10 $data11 $data12 $data13 $data14 $data15 $data16
|
print $data10 $data11 $data12 $data13 $data14 $data15 $data16
|
||||||
if $data00 != 100 then
|
if $data00 != 100 then
|
||||||
|
@ -140,7 +140,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 < 1626739440001 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 order by count(tbcol) desc
|
||||||
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
|
||||||
|
|
|
@ -100,7 +100,8 @@ if $data05 != 1 then
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sql select max(c1), min(c1), sum(c1), avg(c1), count(c1), t1 from $stb where c1 > 0 group by t1
|
sql select max(c1), min(c1), sum(c1), avg(c1), count(c1), t1 from $stb where c1 > 0 group by t1
|
||||||
if $rows != 1 then
|
if $rows != 2 then
|
||||||
|
print === rows $rows
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
if $data00 != 319 then
|
if $data00 != 319 then
|
||||||
|
|
|
@ -66,9 +66,9 @@ class TDTestCase:
|
||||||
tdSql.checkRows(self.row_nums+1)
|
tdSql.checkRows(self.row_nums+1)
|
||||||
|
|
||||||
tdSql.query(f"select count(c1) , count(t2) from {dbname}.stb where abs(c1+t2)=1 partition by tbname")
|
tdSql.query(f"select count(c1) , count(t2) from {dbname}.stb where abs(c1+t2)=1 partition by tbname")
|
||||||
tdSql.checkRows(2)
|
tdSql.checkRows(10)
|
||||||
tdSql.query(f"select count(c1) from {dbname}.stb where abs(c1+t2)=1 partition by tbname")
|
tdSql.query(f"select count(c1) from {dbname}.stb where abs(c1+t2)=1 partition by tbname")
|
||||||
tdSql.checkRows(2)
|
tdSql.checkRows(10)
|
||||||
|
|
||||||
tdSql.query(f"select tbname , count(c1) from {dbname}.stb partition by tbname order by tbname")
|
tdSql.query(f"select tbname , count(c1) from {dbname}.stb partition by tbname order by tbname")
|
||||||
tdSql.checkRows(self.tb_nums)
|
tdSql.checkRows(self.tb_nums)
|
||||||
|
|
|
@ -436,7 +436,7 @@ class TDTestCase:
|
||||||
tdSql.checkData(1,1,None)
|
tdSql.checkData(1,1,None)
|
||||||
|
|
||||||
tdSql.query(f"select t1 ,count(c1) from {dbname}.stb1 partition by t1 ")
|
tdSql.query(f"select t1 ,count(c1) from {dbname}.stb1 partition by t1 ")
|
||||||
tdSql.checkRows(2)
|
tdSql.checkRows(4)
|
||||||
|
|
||||||
# filter by tbname
|
# filter by tbname
|
||||||
tdSql.query(f"select last_row(c1) from {dbname}.stb1 where tbname = 'ct1' ")
|
tdSql.query(f"select last_row(c1) from {dbname}.stb1 where tbname = 'ct1' ")
|
||||||
|
|
Loading…
Reference in New Issue