提交 45d9af93 编写于 作者: A Alex Duan

fix(query): group by with proj query can not work well

上级 1f764d16
......@@ -2072,6 +2072,12 @@ static SQLFunctionCtx* createSQLFunctionCtx(SQueryRuntimeEnv* pRuntimeEnv, SExpr
} else if (functionId == TSDB_FUNC_SCALAR_EXPR) {
pCtx->param[1].pz = (char*) &pRuntimeEnv->sasArray[i];
}
// if group by , TSDB_FUNC_PRJ operator must set one row
if (pQueryAttr->groupbyColumn && functionId == TSDB_FUNC_PRJ) {
pCtx->param[0].i64 = 1;
pCtx->param[0].nType = TSDB_DATA_TYPE_BIGINT;
}
}
for(int32_t i = 1; i < numOfOutput; ++i) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册