File tree Expand file tree Collapse file tree
api/src/main/java/org/apache/iceberg/expressions Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121import java .io .ObjectStreamException ;
2222import java .io .Serializable ;
2323import java .nio .ByteBuffer ;
24+ import java .nio .ByteOrder ;
2425
2526/**
2627 * Stand-in classes for expression classes in Java Serialization.
@@ -92,7 +93,8 @@ static class BoundingBoxLiteralProxy extends FixedLiteralProxy {
9293
9394 @ Override
9495 Object readResolve () throws ObjectStreamException {
95- return new Literals .BoundingBoxLiteral (ByteBuffer .wrap (bytes ()));
96+ return new Literals .BoundingBoxLiteral (
97+ ByteBuffer .wrap (bytes ()).order (ByteOrder .LITTLE_ENDIAN ));
9698 }
9799 }
98100}
Original file line number Diff line number Diff line change 1919package org .apache .iceberg .expressions ;
2020
2121import java .nio .ByteBuffer ;
22- import java .nio .ByteOrder ;
2322import java .util .List ;
2423import java .util .Locale ;
2524import java .util .Set ;
@@ -292,7 +291,6 @@ public String toString() {
292291 case ST_DISJOINT :
293292 {
294293 ByteBuffer serializedBoundingBox = (ByteBuffer ) literal ().value ();
295- serializedBoundingBox .order (ByteOrder .LITTLE_ENDIAN );
296294 BoundingBox boundingBox = BoundingBox .fromByteBuffer (serializedBoundingBox );
297295 String functionName = op ().name ().toLowerCase (Locale .ROOT );
298296 return functionName + "(" + term () + ", " + boundingBox + ")" ;
You can’t perform that action at this time.
0 commit comments