Commits


Joris Van den Bossche authored and GitHub committed ad752482f81
GH-43410: [Python] Support Arrow PyCapsule stream objects in write_dataset (#43771) ### Rationale for this change Expanding the support internally in pyarrow where we accept objects implementing the Arrow PyCapsule interface. This PR adds support in `ds.write_dataset()` since we already accept a RecordBatchReader as well. ### What changes are included in this PR? `ds.write_dataset()` and `ds.Scanner.from_baches()` now accept any object implementing the Arrow PyCapsule interface for streams. ### Are these changes tested? Yes ### Are there any user-facing changes? No * GitHub Issue: #43410 Authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com> Signed-off-by: Antoine Pitrou <antoine@python.org>