fix: the number of output lines is incorrect when the event window is used with the multiline function

This commit is contained in:
Xiaoyu Wang 2023-03-03 15:20:07 +08:00
parent 486fea65dc
commit cf9c2a112f
1 changed files with 2 additions and 1 deletions

View File

@ -29,7 +29,7 @@ typedef struct SEventWindowOperatorInfo {
SWindowRowsSup winSup; SWindowRowsSup winSup;
int32_t tsSlotId; // primary timestamp column slot id int32_t tsSlotId; // primary timestamp column slot id
STimeWindowAggSupp twAggSup; STimeWindowAggSupp twAggSup;
uint64_t groupId; // current group id, used to identify the data block from different groups uint64_t groupId; // current group id, used to identify the data block from different groups
SFilterInfo* pStartCondInfo; SFilterInfo* pStartCondInfo;
SFilterInfo* pEndCondInfo; SFilterInfo* pEndCondInfo;
bool inWindow; bool inWindow;
@ -310,6 +310,7 @@ int32_t eventWindowAggImpl(SOperatorInfo* pOperator, SEventWindowOperatorInfo* p
pSup->rowEntryInfoOffset, pTaskInfo); pSup->rowEntryInfoOffset, pTaskInfo);
pRes->info.rows += pInfo->pRow->numOfRows; pRes->info.rows += pInfo->pRow->numOfRows;
pInfo->pRow->numOfRows = 0;
pInfo->inWindow = false; pInfo->inWindow = false;
rowIndex += 1; rowIndex += 1;