Kontinuation commented on code in PR #2305:
URL: https://github.com/apache/sedona/pull/2305#discussion_r2289619872


##########
common/src/main/java/org/apache/sedona/common/S2Geography/GeographyCollection.java:
##########
@@ -135,20 +135,25 @@ public static GeographyCollection decode(UnsafeInput in, 
EncodeTag tag) throws I
     // Skip any covering data
     tag.skipCovering(in);
 
-    // 3) Ensure we have at least 4 bytes for the count
-    if (in.available() < Integer.BYTES) {
-      throw new IOException("GeographyCollection.decodeTagged error: 
insufficient header bytes");
-    }
+    try {
+      int count = in.readInt();

Review Comment:
   Copilot is probably misinterpreting the diff, we can ignore it.



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