fix(query): getFileBlockDistInfo totalSize set

This commit is contained in:
Alex Duan 2022-12-21 17:01:59 +08:00
parent 78ab23aad8
commit ebf35651f3
1 changed files with 4 additions and 0 deletions

View File

@ -4349,6 +4349,10 @@ int32_t tsdbGetFileBlocksDistInfo(STsdbReader* pReader, STableBlockDistInfo* pTa
pTableBlockInfo->numOfSmallBlocks += 1;
}
for (int32_t i = 0; i < pBlock->nSubBlock; i++) {
pTableBlockInfo->totalSize += pBlock->aSubBlock[i].szBlock;
}
int32_t bucketIndex = getBucketIndex(pTableBlockInfo->defMinRows, bucketRange, numOfRows);
pTableBlockInfo->blockRowsHisto[bucketIndex]++;