fix: no result for table cout scan group by dbname,stable_name for systable

This commit is contained in:
slzhou 2022-11-30 19:52:29 +08:00
parent 323e52b8c5
commit 45ecc2ba52
1 changed files with 4 additions and 0 deletions

View File

@ -3099,6 +3099,10 @@ static SSDataBlock* buildSysDbTableCount(SOperatorInfo* pOperator, STableCountSc
getPerfDbMeta(NULL, &perfdbTableNum);
if (pSupp->groupByDbName) {
if (pSupp->groupByStbName) {
setOperatorCompleted(pOperator);
return NULL;
}
if (pInfo->currGrpIdx == 0) {
uint64_t groupId = calcGroupId(TSDB_INFORMATION_SCHEMA_DB, strlen(TSDB_INFORMATION_SCHEMA_DB));
pRes->info.id.groupId = groupId;