fix: remove tbl count scan modification from the PR

This commit is contained in:
slzhou 2023-05-26 14:52:14 +08:00
parent b83bf9163e
commit b89f1652fc
1 changed files with 2 additions and 4 deletions

View File

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