未验证 提交 b1ccc920 编写于 作者: M Minglei Jin 提交者: GitHub

Merge pull request #12304 from taosdata/fix/TS-1489-D

fix(query): groupby operator on proj query force set row to one
......@@ -7953,6 +7953,14 @@ SOperatorInfo* createGroupbyOperatorInfo(SQueryRuntimeEnv* pRuntimeEnv, SOperato
pInfo->binfo.pCtx = createSQLFunctionCtx(pRuntimeEnv, pExpr, numOfOutput, &pInfo->binfo.rowCellInfoOffset,
pRuntimeEnv->resultInfo.capacity);
// if have proj column, must set output row is 1
for (int32_t i = 0; i < numOfOutput; i++) {
if (pInfo->binfo.pCtx[i].functionId == TSDB_FUNC_PRJ) {
pInfo->binfo.pCtx[i].param[0].i64 = 1;
pInfo->binfo.pCtx[i].param[0].nType = TSDB_DATA_TYPE_BIGINT;
}
}
SQueryAttr *pQueryAttr = pRuntimeEnv->pQueryAttr;
pQueryAttr->resultRowSize = (pQueryAttr->resultRowSize *
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册