fix(query): update the lastkey for each table during table scanning.
This commit is contained in:
parent
b78249c548
commit
f83b863cf9
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue