fix switchin group issue

This commit is contained in:
Ganlin Zhao 2023-06-08 18:25:32 +08:00
parent 7ee05df7c6
commit 21fccc2d48
1 changed files with 4 additions and 1 deletions

View File

@ -903,7 +903,7 @@ static SSDataBlock* doTimeslice(SOperatorInfo* pOperator) {
goto _finished; goto _finished;
} }
} }
// handling post work for a specific group // post work for a specific group
// check if need to interpolate after last datablock // check if need to interpolate after last datablock
// except for fill(next), fill(linear) // except for fill(next), fill(linear)
@ -916,6 +916,9 @@ static SSDataBlock* doTimeslice(SOperatorInfo* pOperator) {
// restore initial value for next group // restore initial value for next group
resetTimesliceInfo(pSliceInfo); resetTimesliceInfo(pSliceInfo);
if (checkThresholdReached(pSliceInfo, pOperator->resultInfo.threshold)) {
goto _finished;
}
} }
_finished: _finished: