fix: force at least one row for agg/window group

This commit is contained in:
shenglian zhou 2022-08-06 20:11:12 +08:00
parent 580b2e587b
commit a16a6b73c8
1 changed files with 4 additions and 0 deletions

View File

@ -1448,6 +1448,10 @@ static void doUpdateNumOfRows(SResultRow* pRow, int32_t numOfExprs, const int32_
pRow->numOfRows = pResInfo->numOfRes;
}
}
// TODO: if all expr skips all blocks, e.g. all null inputs for max function, output one row in final result.
if (pRow->numOfRows == 0) {
pRow->numOfRows = 1;
}
}
// todo extract method with copytoSSDataBlock