fix(query): ensure capacity of ssdatablock.

This commit is contained in:
Haojun Liao 2022-07-11 11:55:02 +08:00
parent dd20c34346
commit d83f875467
1 changed files with 1 additions and 0 deletions

View File

@ -637,6 +637,7 @@ static SSDataBlock* buildPartitionResult(SOperatorInfo* pOperator) {
int32_t* pageId = taosArrayGet(pGroupInfo->pPageList, pInfo->pageIndex);
void* page = getBufPage(pInfo->pBuf, *pageId);
blockDataEnsureCapacity(pInfo->binfo.pRes, pInfo->rowCapacity);
blockDataFromBuf1(pInfo->binfo.pRes, page, pInfo->rowCapacity);
pInfo->pageIndex += 1;