提交 cc78a635 编写于 作者: S shenglian zhou

fix: do not performace table count scan optimized where there are no agg functions

上级 989f1cdd
...@@ -2530,7 +2530,9 @@ static bool tbCntScanOptIsEligibleAggFuncs(SNodeList* pAggFuncs) { ...@@ -2530,7 +2530,9 @@ static bool tbCntScanOptIsEligibleAggFuncs(SNodeList* pAggFuncs) {
} }
static bool tbCntScanOptIsEligibleAgg(SAggLogicNode* pAgg) { static bool tbCntScanOptIsEligibleAgg(SAggLogicNode* pAgg) {
return tbCntScanOptIsEligibleGroupKeys(pAgg->pGroupKeys) && tbCntScanOptIsEligibleAggFuncs(pAgg->pAggFuncs); return tbCntScanOptIsEligibleGroupKeys(pAgg->pGroupKeys) &&
(NULL != pAgg->pAggFuncs) &&
tbCntScanOptIsEligibleAggFuncs(pAgg->pAggFuncs);
} }
static bool tbCntScanOptGetColValFromCond(SOperatorNode* pOper, SColumnNode** pCol, SValueNode** pVal) { static bool tbCntScanOptGetColValFromCond(SOperatorNode* pOper, SColumnNode** pCol, SValueNode** pVal) {
......
...@@ -104,4 +104,9 @@ if $data62 != 5 then ...@@ -104,4 +104,9 @@ if $data62 != 5 then
return -1 return -1
endi endi
sql select distinct db_name from information_schema.ins_tables;
print $rows
if $rows != 4 then
return -1
endi
system sh/exec.sh -n dnode1 -s stop -x SIGINT system sh/exec.sh -n dnode1 -s stop -x SIGINT
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册