ndrluis commented on code in PR #1066:
URL: https://github.com/apache/iceberg-python/pull/1066#discussion_r1719185549


##########
pyiceberg/table/__init__.py:
##########
@@ -4365,6 +4365,10 @@ def _readable_metrics_struct(bound_type: PrimitiveType) 
-> pa.StructType:
         for manifest_list in snapshot.manifests(io):
             for manifest_entry in manifest_list.fetch_manifest_entry(io):
                 data_file = manifest_entry.data_file
+                if file_content_type == "data" and data_file.content != 
DataFileContent.DATA:
+                    continue
+                if file_content_type == "delete" and data_file.content == 
DataFileContent.DATA:

Review Comment:
   What do you think about moving the file_content_type options to constants?



-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to