steFaiz commented on code in PR #7812:
URL: https://github.com/apache/paimon/pull/7812#discussion_r3218657358


##########
paimon-common/src/main/java/org/apache/paimon/globalindex/btree/BTreeIndexMeta.java:
##########
@@ -70,13 +70,13 @@ public byte[] serialize() {
             sliceOutput.writeInt(firstKey.length);
             sliceOutput.writeBytes(firstKey);
         } else {
-            sliceOutput.writeInt(0);
+            sliceOutput.writeInt(-1);
         }
         if (lastKey != null) {
             sliceOutput.writeInt(lastKey.length);
             sliceOutput.writeBytes(lastKey);
         } else {
-            sliceOutput.writeInt(0);

Review Comment:
   Dose this have incompatibility risks? For example if an old version file is 
all-null, a new version meta will set the firstKey and lastKey as an empty 
byte[].



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