kylebarron commented on code in PR #3447:
URL: https://github.com/apache/iceberg-python/pull/3447#discussion_r4185657140


##########
pyiceberg/io/pyarrow.py:
##########
@@ -3043,3 +3060,23 @@ def _get_field_from_arrow_table(arrow_table: pa.Table, 
field_path: str) -> pa.Ar
     field_array = arrow_table[path_parts[0]]
     # Navigate into the struct using the remaining path parts
     return pc.struct_field(field_array, path_parts[1:])
+
+
+def _coerce_arrow_input(df: pa.Table | pa.RecordBatchReader | 
ArrowStreamExportable) -> pa.Table | pa.RecordBatchReader:

Review Comment:
   IMO it makes sense to keep it private if there's ever a future where you 
remove the pyarrow dependency entirely (i.e. if you pass the Arrow data 
directly to Rust)



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