Merge pull request #17233 from taosdata/feature/3_liaohj

fix(query): clean result block before loading new results.
This commit is contained in:
Haojun Liao 2022-10-09 13:27:54 +08:00 committed by GitHub
commit fba30d0a9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -3097,6 +3097,7 @@ static SSDataBlock* doTagScan(SOperatorInfo* pOperator) {
STagScanInfo* pInfo = pOperator->info;
SExprInfo* pExprInfo = &pOperator->exprSupp.pExprInfo[0];
SSDataBlock* pRes = pInfo->pRes;
blockDataCleanup(pRes);
int32_t size = taosArrayGetSize(pInfo->pTableList->pTableList);
if (size == 0) {