提交 a16a6b73 编写于 作者: S shenglian zhou

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

上级 580b2e58
...@@ -1448,6 +1448,10 @@ static void doUpdateNumOfRows(SResultRow* pRow, int32_t numOfExprs, const int32_ ...@@ -1448,6 +1448,10 @@ static void doUpdateNumOfRows(SResultRow* pRow, int32_t numOfExprs, const int32_
pRow->numOfRows = pResInfo->numOfRes; 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 // todo extract method with copytoSSDataBlock
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册