kevinjqliu commented on code in PR #986:
URL: https://github.com/apache/iceberg-python/pull/986#discussion_r1700782098


##########
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 was thinking something with inheritance like:
   _ConvertToArrowTypes
   _ConvertToLargeTypes(_ConvertToArrowTypes)
   _ConvertToSmallTypes(_ConvertToArrowTypes)
   
   



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