refactor: add assert.

This commit is contained in:
Haojun Liao 2022-07-30 14:05:39 +08:00
parent b6324b5c4e
commit 97d0e558bc
1 changed files with 1 additions and 0 deletions

View File

@ -507,6 +507,7 @@ static void doHashPartition(SOperatorInfo* pOperator, SSDataBlock* pBlock) {
colDataSetNull_f(bitmap, (*rows));
} else {
memcpy(data + (*columnLen), colDataGetData(pColInfoData, j), bytes);
ASSERT((data + (*columnLen) + bytes - (char*)pPage) <= getBufPageSize(pInfo->pBuf));
}
contentLen = bytes;
}