fix(stream): window close
This commit is contained in:
parent
3b9de239ce
commit
fe653c948e
|
@ -2360,9 +2360,6 @@ SOperatorInfo* createStreamFinalIntervalOperatorInfo(SOperatorInfo* downstream,
|
|||
}
|
||||
}
|
||||
// semi interval operator does not catch result
|
||||
if (!IS_FINAL_OP(pInfo)) {
|
||||
pInfo->twAggSup.calTrigger = STREAM_TRIGGER_AT_ONCE;
|
||||
}
|
||||
pInfo->pUpdateRes = createResDataBlock(pPhyNode->pOutputDataBlockDesc);
|
||||
pInfo->pUpdateRes->info.type = STREAM_REPROCESS;
|
||||
blockDataEnsureCapacity(pInfo->pUpdateRes, 128);
|
||||
|
@ -2376,6 +2373,10 @@ SOperatorInfo* createStreamFinalIntervalOperatorInfo(SOperatorInfo* downstream,
|
|||
pOperator->name = "StreamSemiIntervalOperator";
|
||||
}
|
||||
|
||||
if (!IS_FINAL_OP(pInfo)) {
|
||||
pInfo->twAggSup.calTrigger = STREAM_TRIGGER_AT_ONCE;
|
||||
}
|
||||
|
||||
pOperator->operatorType = pPhyNode->type;
|
||||
pOperator->blocking = true;
|
||||
pOperator->status = OP_NOT_OPENED;
|
||||
|
|
|
@ -81,6 +81,7 @@
|
|||
# ./test.sh -f tsim/stream/triggerSession0.sim
|
||||
./test.sh -f tsim/stream/partitionby.sim
|
||||
./test.sh -f tsim/stream/schedSnode.sim
|
||||
./test.sh -f tsim/stream/windowClose.sim
|
||||
|
||||
|
||||
# ---- transaction
|
||||
|
|
|
@ -22,7 +22,7 @@ sql create stream stream1 trigger window_close into streamt as select _wstartts
|
|||
|
||||
sql insert into tu1 values(now, 1);
|
||||
|
||||
sleep 300
|
||||
sleep 500
|
||||
sql select * from streamt;
|
||||
if $rows != 0 then
|
||||
print ======$rows
|
||||
|
|
Loading…
Reference in New Issue