Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Python FFI bindings for RecordBatchReader #633

Closed
kylebarron opened this issue May 10, 2024 · 0 comments · Fixed by #637
Closed

Add Python FFI bindings for RecordBatchReader #633

kylebarron opened this issue May 10, 2024 · 0 comments · Fixed by #637

Comments

@kylebarron
Copy link
Member

and use that for writing from an ArrowArrayStream to various file formats.

Maybe in the future this can expand to further operations.

kylebarron added a commit that referenced this issue May 15, 2024
### Change list

- Adds Python `RecordBatchReader` class to store a stream of Arrow
record batches
- Implements `__arrow_c_stream__` for exporting a Rust stream of record
batches to Python
- Implements `FromPyObject` to read from an `__arrow_c_stream__`
- Updates geozero-based writers to read from the stream instead of from
a materialized table
- Updates writing Arrow IPC and IPC Stream to not materialize the table

Updating writing GeoParquet from a stream instead of a table is left for
future work.

Closes #633
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant