fix(query): update the lastkey for each table during table scanning.

This commit is contained in:
Haojun Liao 2022-11-02 14:36:00 +08:00
parent b78249c548
commit f83b863cf9
1 changed files with 5 additions and 0 deletions

View File

@ -2640,6 +2640,11 @@ static int32_t doBuildDataBlock(STsdbReader* pReader) {
}
}
if (code == TSDB_CODE_SUCCESS) {
STimeWindow* pWin = &pReader->pResBlock->info.window;
pScanInfo->lastKey = ASCENDING_TRAVERSE(pReader->order)? pWin->ekey:pWin->skey;
}
return code;
}