sungwy commented on code in PR #986: URL: https://github.com/apache/iceberg-python/pull/986#discussion_r1700630641
########## pyiceberg/io/pyarrow.py: ########## @@ -1146,6 +1152,31 @@ def primitive(self, primitive: pa.DataType) -> pa.DataType: return primitive +class _ConvertToSmallTypes(PyArrowSchemaVisitor[Union[pa.DataType, pa.Schema]]): + def schema(self, schema: pa.Schema, struct_result: pa.StructType) -> pa.Schema: Review Comment: I thought of that, but I didn't like naming one as _ConvertToLargeTypes, and then having an arg like `reverse: bool` -- 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