Fokko commented on code in PR #602: URL: https://github.com/apache/iceberg-python/pull/602#discussion_r1564223181
########## pyiceberg/table/__init__.py: ########## @@ -3410,6 +3410,32 @@ def _readable_metrics_struct(bound_type: PrimitiveType) -> pa.StructType: schema=entries_schema, ) + def refs(self) -> "pa.Table": + import pyarrow as pa + + ref_schema = pa.schema([ + pa.field('name', pa.string(), nullable=False), + pa.field('type', pa.string(), nullable=False), Review Comment: What do you think of changing this field into a categorical? https://pandas.pydata.org/docs/user_guide/categorical.html#series-creation -- 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