提交 97fb2537 编写于 作者: 5 54liuyao

fix(ci):modify ci test

上级 da13891c
...@@ -23,443 +23,516 @@ sql insert into t1 values(1648791223001,2,2,3,1.1); ...@@ -23,443 +23,516 @@ sql insert into t1 values(1648791223001,2,2,3,1.1);
sql insert into t1 values(1648791233002,3,2,3,2.1); sql insert into t1 values(1648791233002,3,2,3,2.1);
sql insert into t1 values(1648791243003,4,2,3,3.1); sql insert into t1 values(1648791243003,4,2,3,3.1);
sql insert into t1 values(1648791213004,4,2,3,4.1); sql insert into t1 values(1648791213004,4,2,3,4.1);
sleep 1000
$loop_count = 0
loop0:
sleep 200
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt; sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
if $rows != 4 then $loop_count = $loop_count + 1
print ======$rows if $loop_count == 20 then
return -1 return -1
endi endi
if $rows != 4 then
print =====rows=$rows
goto loop0
endi
# row 0 # row 0
if $data01 != 2 then if $data01 != 2 then
print ======$data01 print =====data01=$data01
return -1 goto loop0
endi endi
if $data02 != 2 then if $data02 != 2 then
print ======$data02 print =====data02=$data02
return -1 goto loop0
endi endi
if $data03 != 5 then if $data03 != 5 then
print ======$data03 print =====data03=$data03
return -1 goto loop0
endi endi
if $data04 != 2 then if $data04 != 2 then
print ======$data04 print =====data04=$data04
return -1 goto loop0
endi endi
if $data05 != 3 then if $data05 != 3 then
print ======$data05 print =====data05=$data05
return -1 goto loop0
endi endi
# row 1 # row 1
if $data11 != 1 then if $data11 != 1 then
print ======$data11 print =====data11=$data11
return -1 goto loop0
endi endi
if $data12 != 1 then if $data12 != 1 then
print ======$data12 print =====data12=$data12
return -1 goto loop0
endi endi
if $data13 != 2 then if $data13 != 2 then
print ======$data13 print =====data13=$data13
return -1 goto loop0
endi endi
if $data14 != 2 then if $data14 != 2 then
print ======$data14 print =====data14=$data14
return -1 goto loop0
endi endi
if $data15 != 3 then if $data15 != 3 then
print ======$data15 print =====data15=$data15
return -1 goto loop0
endi endi
# row 2 # row 2
if $data21 != 1 then if $data21 != 1 then
print ======$data21 print =====data21=$data21
return -1 return -1
endi endi
if $data22 != 1 then if $data22 != 1 then
print ======$data22 print =====data22=$data22
return -1 return -1
endi endi
if $data23 != 3 then if $data23 != 3 then
print ======$data23 print =====data23=$data23
return -1 return -1
endi endi
if $data24 != 2 then if $data24 != 2 then
print ======$data24 print =====data24=$data24
return -1 return -1
endi endi
if $data25 != 3 then if $data25 != 3 then
print ======$data25 print =====data25=$data25
return -1 return -1
endi endi
# row 3 # row 3
if $data31 != 1 then if $data31 != 1 then
print ======$data31 print =====data31=$data31
return -1 return -1
endi endi
if $data32 != 1 then if $data32 != 1 then
print ======$data32 print =====data32=$data32
return -1 return -1
endi endi
if $data33 != 4 then if $data33 != 4 then
print ======$data33 print =====data33=$data33
return -1 return -1
endi endi
if $data34 != 2 then if $data34 != 2 then
print ======$data34 print =====data34=$data34
return -1 return -1
endi endi
if $data35 != 3 then if $data35 != 3 then
print ======$data35 print =====data35=$data35
return -1 return -1
endi endi
sql insert into t1 values(1648791223001,12,14,13,11.1); sql insert into t1 values(1648791223001,12,14,13,11.1);
sleep 500
$loop_count = 0
loop1:
sleep 200
sql select * from streamt; sql select * from streamt;
$loop_count = $loop_count + 1
if $loop_count == 20 then
return -1
endi
print count(*) , count(d) , sum(a) , max(b) , min(c) print count(*) , count(d) , sum(a) , max(b) , min(c)
print 0: $data00 , $data01 , $data02 , $data03 , $data04 , $data05 print 0: $data00 , $data01 , $data02 , $data03 , $data04 , $data05
print 1: $data10 , $data11 , $data12 , $data13 , $data14 , $data15 print 1: $data10 , $data11 , $data12 , $data13 , $data14 , $data15
if $rows != 4 then if $rows != 4 then
print ======$rows print ======$rows
return -1 goto loop1
endi endi
# row 0 # row 0
if $data01 != 2 then if $data01 != 2 then
print ======$data01 print =====data01=$data01
return -1 goto loop1
endi endi
if $data02 != 2 then if $data02 != 2 then
print ======$data02 print =====data02=$data02
return -1 goto loop1
endi endi
if $data03 != 5 then if $data03 != 5 then
print ======$data03 print =====data03=$data03
return -1 goto loop1
endi endi
if $data04 != 2 then if $data04 != 2 then
print ======$data04 print =====data04=$data04
return -1 goto loop1
endi endi
if $data05 != 3 then if $data05 != 3 then
print ======$data05 print =====data05=$data05
return -1 goto loop1
endi endi
# row 1 # row 1
if $data11 != 1 then if $data11 != 1 then
print ======$data11 print =====data11=$data11
return -1 goto loop1
endi endi
if $data12 != 1 then if $data12 != 1 then
print ======$data12 print =====data12=$data12
return -1 goto loop1
endi endi
if $data13 != 12 then if $data13 != 12 then
print ======$data13 print =====data13=$data13
return -1 goto loop1
endi endi
if $data14 != 14 then if $data14 != 14 then
print ======$data14 print =====data14=$data14
return -1 goto loop1
endi endi
if $data15 != 13 then if $data15 != 13 then
print ======$data15 print =====data15=$data15
return -1 goto loop1
endi endi
# row 2 # row 2
if $data21 != 1 then if $data21 != 1 then
print ======$data21 print =====data21=$data21
return -1 return -1
endi endi
if $data22 != 1 then if $data22 != 1 then
print ======$data22 print =====data22=$data22
return -1 return -1
endi endi
if $data23 != 3 then if $data23 != 3 then
print ======$data23 print =====data23=$data23
return -1 return -1
endi endi
if $data24 != 2 then if $data24 != 2 then
print ======$data24 print =====data24=$data24
return -1 return -1
endi endi
if $data25 != 3 then if $data25 != 3 then
print ======$data25 print =====data25=$data25
return -1 return -1
endi endi
# row 3 # row 3
if $data31 != 1 then if $data31 != 1 then
print ======$data31 print =====data31=$data31
return -1 return -1
endi endi
if $data32 != 1 then if $data32 != 1 then
print ======$data32 print =====data32=$data32
return -1 return -1
endi endi
if $data33 != 4 then if $data33 != 4 then
print ======$data33 print =====data33=$data33
return -1 return -1
endi endi
if $data34 != 2 then if $data34 != 2 then
print ======$data34 print =====data34=$data34
return -1 return -1
endi endi
if $data35 != 3 then if $data35 != 3 then
print ======$data35 print =====data35=$data35
return -1 return -1
endi endi
sql insert into t1 values(1648791223002,12,14,13,11.1); sql insert into t1 values(1648791223002,12,14,13,11.1);
sleep 100
$loop_count = 0
loop2:
sleep 200
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt; sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
$loop_count = $loop_count + 1
if $loop_count == 20 then
return -1
endi
# row 1 # row 1
if $data11 != 2 then if $data11 != 2 then
print ======$data11 print =====data11=$data11
return -1 goto loop2
endi endi
if $data12 != 2 then if $data12 != 2 then
print ======$data12 print =====data12=$data12
return -1 goto loop2
endi endi
if $data13 != 24 then if $data13 != 24 then
print ======$data13 print =====data13=$data13
return -1 goto loop2
endi endi
if $data14 != 14 then if $data14 != 14 then
print ======$data14 print =====data14=$data14
return -1 goto loop2
endi endi
if $data15 != 13 then if $data15 != 13 then
print ======$data15 print =====data15=$data15
return -1 goto loop2
endi endi
sql insert into t1 values(1648791223003,12,14,13,11.1); sql insert into t1 values(1648791223003,12,14,13,11.1);
sleep 100
$loop_count = 0
loop3:
sleep 200
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt; sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
$loop_count = $loop_count + 1
if $loop_count == 20 then
return -1
endi
# row 1 # row 1
if $data11 != 3 then if $data11 != 3 then
print ======$data11 print =====data11=$data11
return -1 goto loop3
endi endi
if $data12 != 3 then if $data12 != 3 then
print ======$data12 print =====data12=$data12
return -1 goto loop3
endi endi
if $data13 != 36 then if $data13 != 36 then
print ======$data13 print =====data13=$data13
return -1 goto loop3
endi endi
if $data14 != 14 then if $data14 != 14 then
print ======$data14 print =====data14=$data14
return -1 goto loop3
endi endi
if $data15 != 13 then if $data15 != 13 then
print ======$data15 print =====data15=$data15
return -1 goto loop3
endi endi
sql insert into t1 values(1648791223001,1,1,1,1.1); sql insert into t1 values(1648791223001,1,1,1,1.1);
sql insert into t1 values(1648791223002,2,2,2,2.1); sql insert into t1 values(1648791223002,2,2,2,2.1);
sql insert into t1 values(1648791223003,3,3,3,3.1); sql insert into t1 values(1648791223003,3,3,3,3.1);
sleep 100
$loop_count = 0
loop4:
sleep 200
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt; sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
$loop_count = $loop_count + 1
if $loop_count == 20 then
return -1
endi
# row 1 # row 1
if $data11 != 3 then if $data11 != 3 then
print ======$data11 print =====data11=$data11
return -1 goto loop4
endi endi
if $data12 != 3 then if $data12 != 3 then
print ======$data12 print =====data12=$data12
return -1 goto loop4
endi endi
if $data13 != 6 then if $data13 != 6 then
print ======$data13 print =====data13=$data13
return -1 goto loop4
endi endi
if $data14 != 3 then if $data14 != 3 then
print ======$data14 print =====data14=$data14
return -1 goto loop4
endi endi
if $data15 != 1 then if $data15 != 1 then
print ======$data15 print =====data15=$data15
return -1 goto loop4
endi endi
sql insert into t1 values(1648791233003,3,2,3,2.1); sql insert into t1 values(1648791233003,3,2,3,2.1);
sql insert into t1 values(1648791233002,5,6,7,8.1); sql insert into t1 values(1648791233002,5,6,7,8.1);
sql insert into t1 values(1648791233002,3,2,3,2.1); sql insert into t1 values(1648791233002,3,2,3,2.1);
sleep 100
$loop_count = 0
loop5:
sleep 200
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt; sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
$loop_count = $loop_count + 1
if $loop_count == 20 then
return -1
endi
# row 2 # row 2
if $data21 != 2 then if $data21 != 2 then
print ======$data21 print =====data21=$data21
return -1 goto loop5
endi endi
if $data22 != 2 then if $data22 != 2 then
print ======$data22 print =====data22=$data22
return -1 goto loop5
endi endi
if $data23 != 6 then if $data23 != 6 then
print ======$data23 print =====data23=$data23
return -1 goto loop5
endi endi
if $data24 != 2 then if $data24 != 2 then
print ======$data24 print =====data24=$data24
return -1 goto loop5
endi endi
if $data25 != 3 then if $data25 != 3 then
print ======$data25 print =====data25=$data25
return -1 goto loop5
endi endi
sql insert into t1 values(1648791213004,4,2,3,4.1) (1648791213006,5,4,7,9.1) (1648791213004,40,20,30,40.1) (1648791213005,4,2,3,4.1); sql insert into t1 values(1648791213004,4,2,3,4.1) (1648791213006,5,4,7,9.1) (1648791213004,40,20,30,40.1) (1648791213005,4,2,3,4.1);
sleep 100
$loop_count = 0
loop6:
sleep 200
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt; sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
$loop_count = $loop_count + 1
if $loop_count == 20 then
return -1
endi
# row 0 # row 0
if $data01 != 4 then if $data01 != 4 then
print ======$data01 print =====data01=$data01
return -1 goto loop6
endi endi
if $data02 != 4 then if $data02 != 4 then
print ======$data02 print =====data02=$data02
return -1 goto loop6
endi endi
if $data03 != 50 then if $data03 != 50 then
print ======$data03 != 50 print =====data03=$data03 != 50
return -1 goto loop6
endi endi
if $data04 != 20 then if $data04 != 20 then
print ======$data04 != 20 print =====data04=$data04 != 20
return -1 goto loop6
endi endi
if $data05 != 3 then if $data05 != 3 then
print ======$data05 print =====data05=$data05
return -1 goto loop6
endi endi
sql insert into t1 values(1648791223004,4,2,3,4.1) (1648791233006,5,4,7,9.1) (1648791223004,40,20,30,40.1) (1648791233005,4,2,3,4.1); sql insert into t1 values(1648791223004,4,2,3,4.1) (1648791233006,5,4,7,9.1) (1648791223004,40,20,30,40.1) (1648791233005,4,2,3,4.1);
sleep 100
$loop_count = 0
loop7:
sleep 200
sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt; sql select `_wstart`, c1, c2 ,c3 ,c4, c5 from streamt;
$loop_count = $loop_count + 1
if $loop_count == 20 then
return -1
endi
# row 1 # row 1
if $data11 != 4 then if $data11 != 4 then
print ======$data11 print =====data11=$data11
return -1 goto loop7
endi endi
if $data12 != 4 then if $data12 != 4 then
print ======$data12 print =====data12=$data12
return -1 goto loop7
endi endi
if $data13 != 46 then if $data13 != 46 then
print ======$data13 != 46 print =====data13=$data13 != 46
return -1 goto loop7
endi endi
if $data14 != 20 then if $data14 != 20 then
print ======$data14 != 20 print =====data14=$data14 != 20
return -1 goto loop7
endi endi
if $data15 != 1 then if $data15 != 1 then
print ======$data15 print =====data15=$data15
return -1 goto loop7
endi endi
# row 2 # row 2
if $data21 != 4 then if $data21 != 4 then
print ======$data21 print =====data21=$data21
return -1 goto loop7
endi endi
if $data22 != 4 then if $data22 != 4 then
print ======$data22 print =====data22=$data22
return -1 goto loop7
endi endi
if $data23 != 15 then if $data23 != 15 then
print ======$data23 print =====data23=$data23
return -1 goto loop7
endi endi
if $data24 != 4 then if $data24 != 4 then
print ======$data24 print =====data24=$data24
return -1 goto loop7
endi endi
if $data25 != 3 then if $data25 != 3 then
print ======$data25 print =====data25=$data25
return -1 goto loop7
endi endi
sql create database test2 vgroups 1; sql create database test2 vgroups 1;
...@@ -479,11 +552,11 @@ sql insert into t1 values(1648791213000,1,1,1,1.0) t2 values(1648791213000,2,2,2 ...@@ -479,11 +552,11 @@ sql insert into t1 values(1648791213000,1,1,1,1.0) t2 values(1648791213000,2,2,2
$loop_count = 0 $loop_count = 0
loop0: loop8:
sleep 300 sleep 200
$loop_count = $loop_count + 1 $loop_count = $loop_count + 1
if $loop_count == 10 then if $loop_count == 20 then
return -1 return -1
endi endi
...@@ -491,7 +564,7 @@ sql select * from streamt; ...@@ -491,7 +564,7 @@ sql select * from streamt;
if $rows != 4 then if $rows != 4 then
print =====rows=$rows print =====rows=$rows
goto loop0 goto loop8
endi endi
sql insert into t1 values(1648791213000,5,5,5,5.0) t2 values(1648791213000,6,6,6,6.0) t5 values(1648791213000,7,7,7,7.0); sql insert into t1 values(1648791213000,5,5,5,5.0) t2 values(1648791213000,6,6,6,6.0) t5 values(1648791213000,7,7,7,7.0);
...@@ -499,11 +572,11 @@ sql insert into t1 values(1648791213000,5,5,5,5.0) t2 values(1648791213000,6,6,6 ...@@ -499,11 +572,11 @@ sql insert into t1 values(1648791213000,5,5,5,5.0) t2 values(1648791213000,6,6,6
$loop_count = 0 $loop_count = 0
loop1: loop9:
sleep 300 sleep 200
$loop_count = $loop_count + 1 $loop_count = $loop_count + 1
if $loop_count == 10 then if $loop_count == 20 then
return -1 return -1
endi endi
...@@ -511,51 +584,51 @@ sql select * from streamt order by c4 desc; ...@@ -511,51 +584,51 @@ sql select * from streamt order by c4 desc;
if $rows != 5 then if $rows != 5 then
print =====rows=$rows print =====rows=$rows
goto loop1 goto loop9
endi endi
# row 0 # row 0
if $data01 != 1 then if $data01 != 1 then
print =====data01=$data01 print =====data01=$data01
goto loop1 goto loop9
endi endi
if $data02 != 7 then if $data02 != 7 then
print =====data02=$data02 print =====data02=$data02
goto loop1 goto loop9
endi endi
# row 1 # row 1
if $data11 != 1 then if $data11 != 1 then
print =====data11=$data11 print =====data11=$data11
goto loop1 goto loop9
endi endi
if $data12 != 6 then if $data12 != 6 then
print =====data12=$data12 print =====data12=$data12
goto loop1 goto loop9
endi endi
# row 2 # row 2
if $data21 != 1 then if $data21 != 1 then
print =====data21=$data21 print =====data21=$data21
goto loop1 goto loop9
endi endi
if $data22 != 5 then if $data22 != 5 then
print =====data22=$data22 print =====data22=$data22
goto loop1 goto loop9
endi endi
sql insert into t1 values(1648791213000,8,8,8,8.0); sql insert into t1 values(1648791213000,8,8,8,8.0);
$loop_count = 0 $loop_count = 0
loop2: loop10:
sleep 300 sleep 200
$loop_count = $loop_count + 1 $loop_count = $loop_count + 1
if $loop_count == 10 then if $loop_count == 20 then
return -1 return -1
endi endi
...@@ -564,28 +637,29 @@ sql select * from streamt order by c4 desc; ...@@ -564,28 +637,29 @@ sql select * from streamt order by c4 desc;
# row 0 # row 0
if $data01 != 1 then if $data01 != 1 then
print =====data01=$data01 print =====data01=$data01
goto loop2 goto loop10
endi endi
if $data02 != 8 then if $data02 != 8 then
print =====data02=$data02 print =====data02=$data02
goto loop2 goto loop10
endi endi
$loop_count = 0 $loop_count = 0
loop3: loop11:
sleep 300 sleep 200
sql select count(*) from streamt3;
$loop_count = $loop_count + 1 $loop_count = $loop_count + 1
if $loop_count == 10 then if $loop_count == 20 then
return -1 return -1
endi endi
sql select count(*) from streamt3;
# row 0 # row 0
if $data00 != 5 then if $data00 != 5 then
print =====data00=$data00 print =====data00=$data00
goto loop3 goto loop11
endi endi
#max,min selectivity #max,min selectivity
...@@ -601,25 +675,26 @@ sql insert into ts1 values(1648791222001,2,2,3); ...@@ -601,25 +675,26 @@ sql insert into ts1 values(1648791222001,2,2,3);
sleep 50 sleep 50
$loop_count = 0 $loop_count = 0
loop3: loop12:
sleep 200
sql select * from streamtST3; sql select * from streamtST3;
sleep 300
$loop_count = $loop_count + 1 $loop_count = $loop_count + 1
if $loop_count == 10 then if $loop_count == 20 then
return -1 return -1
endi endi
# row 0 # row 0
if $data02 != 1 then if $data02 != 1 then
print =====data02=$data02 print =====data02=$data02
goto loop3 goto loop12
endi endi
# row 1 # row 1
if $data12 != 2 then if $data12 != 2 then
print =====data12=$data12 print =====data12=$data12
goto loop3 goto loop12
endi endi
...@@ -629,19 +704,22 @@ sql create table t1(ts timestamp, a int, b int , c int, d double); ...@@ -629,19 +704,22 @@ sql create table t1(ts timestamp, a int, b int , c int, d double);
sql create stream streams4 trigger at_once into streamt4 as select _wstart, count(*) c1 from t1 where a > 5 interval(10s); sql create stream streams4 trigger at_once into streamt4 as select _wstart, count(*) c1 from t1 where a > 5 interval(10s);
sql insert into t1 values(1648791213000,1,2,3,1.0); sql insert into t1 values(1648791213000,1,2,3,1.0);
$loop_count = 0
loop13:
sleep 200 sleep 200
sql select * from streamt4; sql select * from streamt4;
# row 0 # row 0
if $rows != 0 then if $rows != 0 then
print =====rows=$rows print =====rows=$rows
return -1 goto loop13
endi endi
sql insert into t1 values(1648791213000,6,2,3,1.0); sql insert into t1 values(1648791213000,6,2,3,1.0);
$loop_count = 0 $loop_count = 0
loop4: loop14:
sleep 200 sleep 200
sql select * from streamt4; sql select * from streamt4;
...@@ -652,13 +730,13 @@ endi ...@@ -652,13 +730,13 @@ endi
if $data01 != 1 then if $data01 != 1 then
print =====data01=$data01 print =====data01=$data01
goto loop4 goto loop14
endi endi
sql insert into t1 values(1648791213000,2,2,3,1.0); sql insert into t1 values(1648791213000,2,2,3,1.0);
$loop_count = 0 $loop_count = 0
loop5: loop15:
sleep 200 sleep 200
sql select * from streamt4; sql select * from streamt4;
...@@ -669,7 +747,7 @@ endi ...@@ -669,7 +747,7 @@ endi
if $rows != 0 then if $rows != 0 then
print =====rows=$rows print =====rows=$rows
goto loop5 goto loop15
endi endi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册