fix: delete index filter for desc query

This commit is contained in:
kailixu 2023-05-23 18:21:21 +08:00
parent 18e83173c8
commit 82b8c3c3d1
1 changed files with 2 additions and 2 deletions

View File

@ -1767,8 +1767,8 @@ static bool overlapWithDelSkyline(STableBlockScanInfo* pBlockScanInfo, const SDa
if (p->ts > pBlock->minKey.ts && index > 0) { if (p->ts > pBlock->minKey.ts && index > 0) {
index -= 1; index -= 1;
} else { // find the first point that is smaller than the minKey.ts of dataBlock. } 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) { if (p->version == 0 && p->ts == pBlock->minKey.ts) {
--index; index -= 1; // index always larger than 0 if p->version equals 0
} }
break; break;
} }