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

Allow streaming batches of data from a DataFrame #75

Merged
merged 10 commits into from
Sep 4, 2023

Conversation

adamreeve
Copy link
Contributor

Fixes #67

This exposes the execute_stream method from Rust. Rather than serializing the data to the IPC format like in the collect method, I've used the Arrow C Data Interface to avoid extra copying of the data. The new RecordBatchStream class that's returned from executeStream acts like the ArrowReader class but with an asynchronous loadNextBatch method.

adamreeve and others added 4 commits September 1, 2023 21:31
This returns a new RecordBatchStream class that acts similarly
to ArrowReader but record batches can be retrieved asynchronously.
datafusion-jni/src/dataframe.rs Outdated Show resolved Hide resolved
datafusion-jni/src/stream.rs Outdated Show resolved Hide resolved
datafusion-jni/src/stream.rs Outdated Show resolved Hide resolved
@jimexist jimexist merged commit 9908183 into datafusion-contrib:main Sep 4, 2023
4 checks passed
@adamreeve adamreeve deleted the execute_stream branch September 4, 2023 02:05
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 this pull request may close these issues.

Providing support for streaming dataset results
2 participants