From 41befca45de4dffb697bc6b070ef068728a90746 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Wed, 2 Jun 2021 16:12:26 +0800 Subject: [PATCH] [td-255]fix bug in session window. --- src/query/src/qExecutor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/query/src/qExecutor.c b/src/query/src/qExecutor.c index c1087db8b7..9e1534eb24 100644 --- a/src/query/src/qExecutor.c +++ b/src/query/src/qExecutor.c @@ -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; -- GitLab