未验证 提交 95f4c81a 编写于 作者: D dapan1121 提交者: GitHub

Merge pull request #20989 from taosdata/szhou/fix-ts3243

fix: do not performace table count scan optimized where there are no agg functions
...@@ -2526,7 +2526,7 @@ static bool tbCntScanOptIsEligibleAggFuncs(SNodeList* pAggFuncs) { ...@@ -2526,7 +2526,7 @@ 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) {
......
...@@ -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.
先完成此消息的编辑!
想要评论请 注册