Anurag-S1ngh opened a new pull request, #4460: URL: https://github.com/apache/iceberg-python/pull/4460
<!-- Closes #2680 --> # Rationale for this change Writes rejected anything that was not a `pyarrow.Table` or `pyarrow.RecordBatchReader`, which forced users of Polars, arro3, and other Arrow implementations to import PyArrow themselves and convert first. Accept objects that implement the Arrow PyCapsule stream interface (`__arrow_c_stream__`) in `append` and `overwrite`, and import them as a PyArrow table. `RecordBatchReader` keeps the existing streaming path. The error message now names the accepted types. ## Are these changes tested? Yes. A wrapper implementing only `__arrow_c_stream__` is written through both `append` and `overwrite`, and an object without the interface is rejected. `tests/table` passes. ## Are there any user-facing changes? Yes. `append` and `overwrite` accept any object implementing the Arrow PyCapsule stream interface. -- 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]
