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 ability to consume query results incrementally #607

Open
judahrand opened this issue Mar 4, 2024 · 1 comment
Open

Add ability to consume query results incrementally #607

judahrand opened this issue Mar 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@judahrand
Copy link
Contributor

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Currently the DataFrame.collect() returns a list of all of the buffered RecordBatches. This is often not desirable as a user may, for example, want to write the result out to disk as it is materialized to save memory.

Describe the solution you'd like

It would be great to have a to_arrow_batches() method which returned a RecordBatchReader which deferred the execution of the batches until they are requested from the RecordBatchReader.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@judahrand judahrand added the enhancement New feature or request label Mar 4, 2024
@judahrand
Copy link
Contributor Author

This may actually be a duplicate of #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant