fix: code refactor

This commit is contained in:
shenglian zhou 2023-05-12 20:20:53 +08:00
parent 5b866edae7
commit 0ea8de64df
1 changed files with 5 additions and 5 deletions

View File

@ -2594,15 +2594,15 @@ static bool tbCntScanOptIsEligibleConds(STbCntScanOptInfo* pInfo, SNode* pCondit
if (NULL == pConditions) { if (NULL == pConditions) {
return true; return true;
} }
if (LIST_LENGTH(pInfo->pAgg->pGroupKeys) != 0) {
return false;
}
if (QUERY_NODE_LOGIC_CONDITION == nodeType(pConditions)) { if (QUERY_NODE_LOGIC_CONDITION == nodeType(pConditions)) {
return tbCntScanOptIsEligibleLogicCond(pInfo, (SLogicConditionNode*)pConditions) && return tbCntScanOptIsEligibleLogicCond(pInfo, (SLogicConditionNode*)pConditions);
LIST_LENGTH(pInfo->pAgg->pGroupKeys) == 0;
} }
if (QUERY_NODE_OPERATOR == nodeType(pConditions)) { if (QUERY_NODE_OPERATOR == nodeType(pConditions)) {
return tbCntScanOptIsEligibleOpCond((SOperatorNode*)pConditions) && return tbCntScanOptIsEligibleOpCond((SOperatorNode*)pConditions);
LIST_LENGTH(pInfo->pAgg->pGroupKeys) == 0;
} }
return false; return false;