TheR1sing3un commented on code in PR #9999:
URL: https://github.com/apache/paimon/pull/9999#discussion_r4056468005


##########
paimon-python/pypaimon/globalindex/global_index_result.py:
##########
@@ -38,18 +42,20 @@ def offset(self, start_offset: int) -> 'GlobalIndexResult':
         offset_bitmap = RoaringBitmap64()
         for row_id in bitmap:
             offset_bitmap.add(row_id + start_offset)
-        return SimpleGlobalIndexResult(offset_bitmap)
+        return SimpleGlobalIndexResult(offset_bitmap, self.is_exact())
 
     def and_(self, other: 'GlobalIndexResult') -> 'GlobalIndexResult':
         """Returns the intersection of this result and the other result."""
         return SimpleGlobalIndexResult(
-            RoaringBitmap64.and_(self.results(), other.results())
+            RoaringBitmap64.and_(self.results(), other.results()),
+            self.is_exact() and other.is_exact(),

Review Comment:
   Nice catch!Resolved



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to