fix: delete index filter for desc query

This commit is contained in:
kailixu 2023-05-23 17:21:45 +08:00
parent 9efd067ecd
commit 18e83173c8
1 changed files with 3 additions and 0 deletions

View File

@ -1767,6 +1767,9 @@ static bool overlapWithDelSkyline(STableBlockScanInfo* pBlockScanInfo, const SDa
if (p->ts > pBlock->minKey.ts && index > 0) {
index -= 1;
} else { // find the first point that is smaller than the minKey.ts of dataBlock.
if (p->version == 0 && p->ts == pBlock->minKey.ts && index > 0) {
--index;
}
break;
}
}