richardstartin commented on a change in pull request #7435: URL: https://github.com/apache/pinot/pull/7435#discussion_r709632713
########## File path: pinot-segment-local/src/main/java/org/apache/pinot/segment/local/segment/index/readers/RangeIndexReaderImpl.java ########## @@ -217,4 +272,26 @@ public void close() { // NOTE: DO NOT close the PinotDataBuffer here because it is tracked by the caller and might be reused later. The // caller is responsible of closing the PinotDataBuffer. } + + private ImmutableRoaringBitmap getMatchesInRange(int firstRangeId, int lastRangeId) { + if (firstRangeId == lastRangeId) { + return null; Review comment: Not necessarily, -1 currently means both smaller than the smallest range and larger than the largest range, so it could mean a full match or no match depending on the original query parameters. This is consistent with the current behaviour though, which appears to be incorrect. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org