fix(query): set correct size of array list.

This commit is contained in:
Haojun Liao 2022-11-17 00:46:06 +08:00
parent 9c459a24e2
commit a464053692
1 changed files with 2 additions and 1 deletions

View File

@ -4128,7 +4128,8 @@ int32_t tsdbRetrieveDatablockSMA(STsdbReader* pReader, SColumnDataAgg*** pBlockS
taosArrayClear(pSup->pColAgg);
taosArrayAddAll(pSup->pColAgg, pNewAggList);
for(int32_t k = 0; k < numOfCols; ++k) {
size_t num = taosArrayGetSize(pSup->pColAgg);
for(int32_t k = 0; k < num; ++k) {
pSup->plist[k] = taosArrayGet(pSup->pColAgg, k);
}