[td-255]fix bug in session window.

This commit is contained in:
Haojun Liao 2021-06-02 16:12:26 +08:00
parent cdf2d3f437
commit 41befca45d
1 changed files with 1 additions and 1 deletions

View File

@ -1347,8 +1347,8 @@ static void doSessionWindowAggImpl(SOperatorInfo* pOperator, SSWindowOperatorInf
pInfo->start = j;
} else if (tsList[j] - pInfo->prevTs <= gap) {
pInfo->curWindow.ekey = tsList[j];
//pInfo->prevTs = tsList[j];
pInfo->numOfRows += 1;
pInfo->prevTs = tsList[j];
if (j == 0 && pInfo->start != 0) {
pInfo->numOfRows = 1;
pInfo->start = 0;