Merge pull request #20989 from taosdata/szhou/fix-ts3243
fix: do not performace table count scan optimized where there are no agg functions
This commit is contained in:
commit
95f4c81ac9
|
@ -2526,7 +2526,7 @@ static bool tbCntScanOptIsEligibleAggFuncs(SNodeList* pAggFuncs) {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
return LIST_LENGTH(pAggFuncs) > 0;
|
||||
}
|
||||
|
||||
static bool tbCntScanOptIsEligibleAgg(SAggLogicNode* pAgg) {
|
||||
|
|
|
@ -104,4 +104,9 @@ if $data62 != 5 then
|
|||
return -1
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue