enhance: modify inside isEligibleAgg func

This commit is contained in:
shenglian zhou 2023-04-20 15:11:12 +08:00
parent cc78a6356c
commit 3a9dddd619
1 changed files with 2 additions and 4 deletions

View File

@ -2526,13 +2526,11 @@ static bool tbCntScanOptIsEligibleAggFuncs(SNodeList* pAggFuncs) {
return false; return false;
} }
} }
return true; return LIST_LENGTH(pAggFuncs) > 0;
} }
static bool tbCntScanOptIsEligibleAgg(SAggLogicNode* pAgg) { static bool tbCntScanOptIsEligibleAgg(SAggLogicNode* pAgg) {
return tbCntScanOptIsEligibleGroupKeys(pAgg->pGroupKeys) && return tbCntScanOptIsEligibleGroupKeys(pAgg->pGroupKeys) && tbCntScanOptIsEligibleAggFuncs(pAgg->pAggFuncs);
(NULL != pAgg->pAggFuncs) &&
tbCntScanOptIsEligibleAggFuncs(pAgg->pAggFuncs);
} }
static bool tbCntScanOptGetColValFromCond(SOperatorNode* pOper, SColumnNode** pCol, SValueNode** pVal) { static bool tbCntScanOptGetColValFromCond(SOperatorNode* pOper, SColumnNode** pCol, SValueNode** pVal) {