JonasJ-ap commented on code in PR #7163:
URL: https://github.com/apache/iceberg/pull/7163#discussion_r1144239023


##########
python/pyiceberg/manifest.py:
##########
@@ -177,6 +177,12 @@ class DataFile(Record):
     sort_order_id: Optional[int]
     spec_id: Optional[int]
 
+    def __setattr__(self, name: str, value: Any) -> None:
+        # The file_format is written as a string, so we need to cast it to the 
Enum
+        if name == "file_format":
+            value = FileFormat[value]

Review Comment:
   Just curious. Is this related to changes in `pyarrow.py` or just an 
independent fix for parsing `file_format` in DataFile?



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