ci:add ci
This commit is contained in:
parent
fe257c1835
commit
bafe5a577e
|
@ -2368,8 +2368,6 @@ SOperatorInfo* createStreamScanOperatorInfo(SReadHandle* pHandle, STableScanPhys
|
||||||
pInfo->pUpdateDataRes = createSpecialDataBlock(STREAM_CLEAR);
|
pInfo->pUpdateDataRes = createSpecialDataBlock(STREAM_CLEAR);
|
||||||
pInfo->assignBlockUid = pTableScanNode->assignBlockUid;
|
pInfo->assignBlockUid = pTableScanNode->assignBlockUid;
|
||||||
pInfo->partitionSup.needCalc = false;
|
pInfo->partitionSup.needCalc = false;
|
||||||
//todo(liuyao) for test
|
|
||||||
pTableScanNode->igCheckUpdate = true;
|
|
||||||
pInfo->igCheckUpdate = pTableScanNode->igCheckUpdate;
|
pInfo->igCheckUpdate = pTableScanNode->igCheckUpdate;
|
||||||
pInfo->igExpired = pTableScanNode->igExpired;
|
pInfo->igExpired = pTableScanNode->igExpired;
|
||||||
|
|
||||||
|
|
|
@ -81,6 +81,15 @@ if $rows == 0 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
sleep 3000
|
||||||
|
|
||||||
|
sql drop stream if exists streamd1;
|
||||||
|
sql drop stream if exists streamd2;
|
||||||
|
sql drop stream if exists streamd3;
|
||||||
|
sql drop stream if exists streamd4;
|
||||||
|
sql drop stream if exists streamd5;
|
||||||
|
sql drop stream if exists streamd6;
|
||||||
|
|
||||||
sql create stream streamd10 into streamd10 as select _wstart, _wend, count(*), first(ca), last(cb) as c2 from t1 interval(10s);
|
sql create stream streamd10 into streamd10 as select _wstart, _wend, count(*), first(ca), last(cb) as c2 from t1 interval(10s);
|
||||||
|
|
||||||
sql desc streamd10;
|
sql desc streamd10;
|
||||||
|
@ -100,15 +109,6 @@ if $rows == 0 then
|
||||||
return -1
|
return -1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
sleep 3000
|
|
||||||
|
|
||||||
sql drop stream if exists streamd1;
|
|
||||||
sql drop stream if exists streamd2;
|
|
||||||
sql drop stream if exists streamd3;
|
|
||||||
sql drop stream if exists streamd4;
|
|
||||||
sql drop stream if exists streamd5;
|
|
||||||
sql drop stream if exists streamd6;
|
|
||||||
|
|
||||||
|
|
||||||
_OVER:
|
_OVER:
|
||||||
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|
||||||
|
|
|
@ -4,11 +4,16 @@ system sh/exec.sh -n dnode1 -s start
|
||||||
sleep 50
|
sleep 50
|
||||||
sql connect
|
sql connect
|
||||||
|
|
||||||
|
print step 1 start
|
||||||
|
|
||||||
sql drop stream if exists streams0;
|
sql drop stream if exists streams0;
|
||||||
sql drop database if exists test;
|
sql drop database if exists test;
|
||||||
sql create database test vgroups 1;
|
sql create database test vgroups 1;
|
||||||
sql use test;
|
sql use test;
|
||||||
sql create table t1(ts timestamp, a int, b int , c int);
|
sql create table t1(ts timestamp, a int, b int , c int);
|
||||||
|
|
||||||
|
print create stream streams0 trigger at_once ignore update 1 into streamt as select _wstart c1, count(*) c2, max(b) c3 from t1 interval(10s);
|
||||||
|
|
||||||
sql create stream streams0 trigger at_once ignore update 1 into streamt as select _wstart c1, count(*) c2, max(b) c3 from t1 interval(10s);
|
sql create stream streams0 trigger at_once ignore update 1 into streamt as select _wstart c1, count(*) c2, max(b) c3 from t1 interval(10s);
|
||||||
|
|
||||||
sql insert into t1 values(1648791213000,1,1,1);
|
sql insert into t1 values(1648791213000,1,1,1);
|
||||||
|
@ -30,7 +35,7 @@ if $data01 != 2 then
|
||||||
goto loop0
|
goto loop0
|
||||||
endi
|
endi
|
||||||
|
|
||||||
if $data02 != 1 then
|
if $data02 != 2 then
|
||||||
print =====data02=$data02
|
print =====data02=$data02
|
||||||
goto loop0
|
goto loop0
|
||||||
endi
|
endi
|
||||||
|
@ -54,9 +59,137 @@ if $data01 != 3 then
|
||||||
goto loop1
|
goto loop1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
if $data02 != 1 then
|
if $data02 != 3 then
|
||||||
print =====data02=$data02
|
print =====data02=$data02
|
||||||
goto loop1
|
goto loop1
|
||||||
endi
|
endi
|
||||||
|
|
||||||
|
print step 1 end
|
||||||
|
|
||||||
|
print step 2 start
|
||||||
|
|
||||||
|
sql drop stream if exists streams1;
|
||||||
|
sql drop database if exists test1;
|
||||||
|
sql create database test1 vgroups 1;
|
||||||
|
sql use test1;
|
||||||
|
sql create table t1(ts timestamp, a int, b int , c int);
|
||||||
|
|
||||||
|
print create stream streams1 trigger at_once ignore update 1 into streamt1 as select _wstart c1, count(*) c2, max(b) c3 from t1 session(ts, 10s);
|
||||||
|
|
||||||
|
sql create stream streams1 trigger at_once ignore update 1 into streamt1 as select _wstart c1, count(*) c2, max(b) c3 from t1 session(ts, 10s);
|
||||||
|
|
||||||
|
sql insert into t1 values(1648791213000,1,1,1);
|
||||||
|
sql insert into t1 values(1648791213000,2,2,2);
|
||||||
|
|
||||||
|
$loop_count = 0
|
||||||
|
|
||||||
|
loop2:
|
||||||
|
sleep 300
|
||||||
|
sql select * from streamt1 order by 1,2,3;
|
||||||
|
|
||||||
|
$loop_count = $loop_count + 1
|
||||||
|
if $loop_count == 10 then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
||||||
|
if $data01 != 2 then
|
||||||
|
print =====data01=$data01
|
||||||
|
goto loop2
|
||||||
|
endi
|
||||||
|
|
||||||
|
if $data02 != 2 then
|
||||||
|
print =====data02=$data02
|
||||||
|
goto loop2
|
||||||
|
endi
|
||||||
|
|
||||||
|
|
||||||
|
sql insert into t1 values(1648791213000,3,3,3);
|
||||||
|
|
||||||
|
$loop_count = 0
|
||||||
|
|
||||||
|
loop3:
|
||||||
|
|
||||||
|
sleep 300
|
||||||
|
sql select * from streamt1 order by 1,2,3;
|
||||||
|
|
||||||
|
$loop_count = $loop_count + 1
|
||||||
|
if $loop_count == 10 then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
||||||
|
if $data01 != 3 then
|
||||||
|
print =====data01=$data01
|
||||||
|
goto loop3
|
||||||
|
endi
|
||||||
|
|
||||||
|
if $data02 != 3 then
|
||||||
|
print =====data02=$data02
|
||||||
|
goto loop3
|
||||||
|
endi
|
||||||
|
|
||||||
|
print step 2 end
|
||||||
|
|
||||||
|
print step 3 start
|
||||||
|
|
||||||
|
sql drop stream if exists streams2;
|
||||||
|
sql drop database if exists test2;
|
||||||
|
sql create database test2 vgroups 1;
|
||||||
|
sql use test2;
|
||||||
|
sql create table t1(ts timestamp, a int, b int , c int);
|
||||||
|
|
||||||
|
print create stream streams2 trigger at_once ignore update 1 into streamt2 as select _wstart c1, count(*) c2, max(b) c3 from t1 state_window(c);
|
||||||
|
|
||||||
|
sql create stream streams2 trigger at_once ignore update 1 into streamt2 as select _wstart c1, count(*) c2, max(b) c3 from t1 state_window(c);
|
||||||
|
|
||||||
|
sql insert into t1 values(1648791213000,1,1,1);
|
||||||
|
sql insert into t1 values(1648791213000,2,2,1);
|
||||||
|
|
||||||
|
$loop_count = 0
|
||||||
|
|
||||||
|
loop2:
|
||||||
|
sleep 300
|
||||||
|
sql select * from streamt2 order by 1,2,3;
|
||||||
|
|
||||||
|
$loop_count = $loop_count + 1
|
||||||
|
if $loop_count == 10 then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
||||||
|
if $data01 != 2 then
|
||||||
|
print =====data01=$data01
|
||||||
|
goto loop2
|
||||||
|
endi
|
||||||
|
|
||||||
|
if $data02 != 2 then
|
||||||
|
print =====data02=$data02
|
||||||
|
goto loop2
|
||||||
|
endi
|
||||||
|
|
||||||
|
|
||||||
|
sql insert into t1 values(1648791213000,3,3,1);
|
||||||
|
|
||||||
|
$loop_count = 0
|
||||||
|
|
||||||
|
loop3:
|
||||||
|
|
||||||
|
sleep 300
|
||||||
|
sql select * from streamt2 order by 1,2,3;
|
||||||
|
|
||||||
|
$loop_count = $loop_count + 1
|
||||||
|
if $loop_count == 10 then
|
||||||
|
return -1
|
||||||
|
endi
|
||||||
|
|
||||||
|
if $data01 != 3 then
|
||||||
|
print =====data01=$data01
|
||||||
|
goto loop3
|
||||||
|
endi
|
||||||
|
|
||||||
|
if $data02 != 3 then
|
||||||
|
print =====data02=$data02
|
||||||
|
goto loop3
|
||||||
|
endi
|
||||||
|
|
||||||
|
print step 3 end
|
||||||
|
|
||||||
system sh/stop_dnodes.sh
|
system sh/stop_dnodes.sh
|
||||||
|
|
Loading…
Reference in New Issue