JingsongLi commented on code in PR #8613:
URL: https://github.com/apache/paimon/pull/8613#discussion_r3577594934


##########
paimon-common/src/main/java/org/apache/paimon/globalindex/bitmap/BitmapIndexReader.java:
##########
@@ -346,26 +344,27 @@ private RoaringNavigableMap64 scanSerializedDictionary(
     private int firstPossibleDictionaryBlock(
             List<BitmapGlobalIndexFormat.DictionaryBlockMeta> blocks,
             BitmapGlobalIndexFormat.SerializedKey key) {
-        int index = findDictionaryBlockIndex(blocks, key);
+        int index = findSerializedDictionaryBlockIndex(blocks, key);
         return Math.max(index, 0);
     }
 
-    private BitmapGlobalIndexFormat.BlockInfo findBitmapBlock(
-            BitmapGlobalIndexFormat.SerializedKey key) {
+    private BitmapGlobalIndexFormat.BlockInfo findBitmapBlock(Object key) {
         List<BitmapGlobalIndexFormat.DictionaryBlockMeta> blocks = 
dictionaryBlocks.get();
         if (blocks.isEmpty()) {
             return null;
         }
 
-        int index = findDictionaryBlockIndex(blocks, key);
+        int index = findLogicalDictionaryBlockIndex(blocks, key);

Review Comment:
   Bitmap global index was introduced by #8276 and has not been included in any 
release yet, so there are no released v1 files whose ordering needs to remain 
readable. This PR is still adjusting the format before its first release; 
keeping VERSION = 1 while switching to logical key ordering is intentional, and 
we do not need a legacy serialized-order read path.



-- 
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