Merge pull request #21437 from taosdata/fix/TD-23955-3.0

fix: delete index filter for desc query
This commit is contained in:
dapan1121 2023-05-24 14:05:07 +08:00 committed by GitHub
commit cbbbaca553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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->ts == pBlock->minKey.ts && p->version < pBlock->maxVer && index > 0) {
index -= 1;
}
break;
}
}