diff --git a/source/libs/parser/src/parTranslater.c b/source/libs/parser/src/parTranslater.c index 9b5ddcdb6e..3fedf49ac9 100755 --- a/source/libs/parser/src/parTranslater.c +++ b/source/libs/parser/src/parTranslater.c @@ -2500,7 +2500,6 @@ static int32_t rewriteCountTbname(STranslateContext* pCxt, SFunctionNode* pCount } static bool hasInvalidFuncNesting(SFunctionNode* pFunc) { - if(pFunc->funcType == FUNCTION_TYPE_COLS) return false; bool hasInvalidFunc = false; nodesWalkExprs(pFunc->pParameterList, haveVectorFunction, &hasInvalidFunc); return hasInvalidFunc; diff --git a/source/libs/planner/src/planOptimizer.c b/source/libs/planner/src/planOptimizer.c index 715ab04676..1ffd8ae59b 100644 --- a/source/libs/planner/src/planOptimizer.c +++ b/source/libs/planner/src/planOptimizer.c @@ -3478,10 +3478,10 @@ static bool eliminateProjOptCanChildConditionUseChildTargets(SLogicNode* pChild, nodesWalkExpr(pJoinLogicNode->pFullOnCond, eliminateProjOptCanUseNewChildTargetsImpl, &cxt); if (!cxt.canUse) return false; } - if (QUERY_NODE_LOGIC_PLAN_AGG == nodeType(pChild) && - ((SAggLogicNode*)pChild)->node.pTargets->length != pNewChildTargets->length) { - return false; - } + //if (QUERY_NODE_LOGIC_PLAN_AGG == nodeType(pChild) && + // ((SAggLogicNode*)pChild)->node.pTargets->length != pNewChildTargets->length) { + // return false; + //} return true; }