提交 3a9dddd6 编写于 作者: S shenglian zhou

enhance: modify inside isEligibleAgg func

上级 cc78a635
...@@ -2526,13 +2526,11 @@ static bool tbCntScanOptIsEligibleAggFuncs(SNodeList* pAggFuncs) { ...@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册