enhance: modify inside isEligibleAgg func
This commit is contained in:
parent
cc78a6356c
commit
3a9dddd619
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue