Merge pull request #20276 from taosdata/fix/TD-22986

fix:return empty ssdatablock
This commit is contained in:
Shengliang Guan 2023-03-07 09:05:35 +08:00 committed by GitHub
commit 5791426b3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1913,7 +1913,9 @@ FETCH_NEXT_BLOCK:
doFilter(pInfo->pRes, pOperator->exprSupp.pFilterInfo, NULL);
pInfo->pRes->info.dataLoad = 1;
blockDataUpdateTsWindow(pInfo->pRes, pInfo->primaryTsIndex);
return pInfo->pRes;
if (pInfo->pRes->info.rows > 0) {
return pInfo->pRes;
}
} break;
case STREAM_SCAN_FROM_DELETE_DATA: {
generateScanRange(pInfo, pInfo->pUpdateDataRes, pInfo->pUpdateRes);