redpheonixx commented on code in PR #1799:
URL: https://github.com/apache/iceberg-python/pull/1799#discussion_r2001295701


##########
tests/io/test_pyarrow_stats.py:
##########
@@ -529,8 +538,12 @@ def test_metrics_primitive_types() -> None:
     assert datafile.lower_bounds[10] == b"he"
     assert datafile.lower_bounds[11] == uuid.uuid3(uuid.NAMESPACE_DNS, 
"foo").bytes
     assert datafile.lower_bounds[12] == b"he"
+    assert int.from_bytes(datafile.lower_bounds[13], byteorder="big", 
signed=True) == int(12345)
+    assert int.from_bytes(datafile.lower_bounds[14], byteorder="big", 
signed=True) == int(123456789123456)
+    assert int.from_bytes(datafile.lower_bounds[15], byteorder="big", 
signed=True) == int(12345678901234123456)

Review Comment:
   This I am updating as below 
   `assert datafile.upper_bounds[13][::-1].ljust(4, b'\x00')== 
STRUCT_INT32.pack(67891)
   `
   please let me know if this will work
   `[::-1].ljust(4, b'\x00') ` to convert it into 4 byte little endian
   



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to