Fokko commented on code in PR #4370:
URL: https://github.com/apache/iceberg-python/pull/4370#discussion_r4612785469
##########
pyiceberg/io/pyarrow.py:
##########
@@ -897,10 +897,15 @@ def _literal_arrow_type(iceberg_type: IcebergType,
values: Iterable[Any]) -> pa.
return visit(iceberg_type, _ConvertToArrowSchema())
+def _to_arrow_value(value: Any) -> Any:
+ # PyArrow builds uuid values from their 16 bytes; older PyArrow releases
reject a uuid.UUID
+ return value.bytes if isinstance(value, uuid.UUID) else value
Review Comment:
How about re-using `to_bytes` from conversions.py?
--
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]