unused code

This commit is contained in:
facetosea 2025-02-12 07:09:51 +00:00
parent fa203ca249
commit 44f6859d65
2 changed files with 4 additions and 5 deletions

View File

@ -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;

View File

@ -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;
}