diff --git a/source/dnode/vnode/src/tsdb/tsdbMergeTree.c b/source/dnode/vnode/src/tsdb/tsdbMergeTree.c index 2048d0d7bab0e351fb98fe042c13c154b1206d83..45052628f9eeaeedf022f78ea08190fc4d30a1ac 100644 --- a/source/dnode/vnode/src/tsdb/tsdbMergeTree.c +++ b/source/dnode/vnode/src/tsdb/tsdbMergeTree.c @@ -200,7 +200,7 @@ static SBlockData *loadLastBlock(SLDataIter *pIter, const char *idStr) { goto _exit; } - code = tsdbSttFileReadBlockData(pIter->pReader, pIter->pSttBlk, pBlock); + code = tsdbSttFileReadBlockDataByColumn(pIter->pReader, pIter->pSttBlk, pBlock, pInfo->pSchema, &pInfo->colIds[1], pInfo->numOfCols - 1); if (code != TSDB_CODE_SUCCESS) { goto _exit; }