32 lines
1.4 KiB
Plaintext
32 lines
1.4 KiB
Plaintext
system sh/stop_dnodes.sh
|
|
system sh/deploy.sh -n dnode1 -i 1
|
|
system sh/exec.sh -n dnode1 -s start
|
|
sleep 50
|
|
sql connect
|
|
|
|
print step2
|
|
|
|
sql create database test2 vgroups 1;
|
|
sql use test2;
|
|
|
|
sql create stable st(ts timestamp,a int,b int,c int, d double) tags(ta int,tb int,tc int);
|
|
sql create table t1 using st tags(1,1,1);
|
|
sql create table t2 using st tags(2,2,2);
|
|
|
|
sql create stream streams1 trigger force_window_close into streamt1 as select _irowts, _isfilled as a1, interp(a) as a2 from st partition by tbname every(1s) fill(prev);
|
|
|
|
run tsim/stream/checkTaskStatus.sim
|
|
|
|
sql create stream streams2 trigger force_window_close IGNORE EXPIRED 0 into streamt2 as select _irowts, _isfilled as a1, interp(a) as a2 from st partition by tbname every(1s) fill(prev);
|
|
sql create stream streams3 trigger force_window_close IGNORE UPDATE 0 into streamt3 as select _irowts, _isfilled as a1, interp(a) as a2 from st partition by tbname every(1s) fill(prev);
|
|
|
|
|
|
sql create stream streams4 trigger force_window_close IGNORE EXPIRED 1 into streamt4 as select _irowts, _isfilled as a1, interp(a) as a2 from st partition by tbname every(1s) fill(prev);
|
|
run tsim/stream/checkTaskStatus.sim
|
|
|
|
sql create stream streams5 trigger force_window_close IGNORE UPDATE 1 into streamt5 as select _irowts, _isfilled as a1, interp(a) as a2 from st partition by tbname every(1s) fill(prev);
|
|
run tsim/stream/checkTaskStatus.sim
|
|
|
|
|
|
system sh/exec.sh -n dnode1 -s stop -x SIGINT
|