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 sinking and scanning of lazyframes #346

Closed
skyth540 opened this issue Sep 27, 2024 · 3 comments
Closed

Allow sinking and scanning of lazyframes #346

skyth540 opened this issue Sep 27, 2024 · 3 comments

Comments

@skyth540
Copy link

skyth540 commented Sep 27, 2024

Is your feature request related to a problem? Please describe.
Lazyframes allow for larger-than-memory dataframes to be handled. pantab does not support lazyframes

Describe the solution you'd like
a sink_to_hyper function similar to sink_parquet and a scan_from_hyper function similar to scan_parquet would be very useful for projects involving lazyframes.

Describe alternatives you've considered
I've tried to sink_parquet and use this library to convert, however it doesn't work with my file, and that takes extra time and overhead anyhow

@WillAyd
Copy link
Collaborator

WillAyd commented Sep 27, 2024

In pantab we don't necessarily want to tie ourselves to any of the libraries this strongly; we just provide one interface and it is up to the library to implement the Arrow C Data specification

I think this is more of a question for polars. You may want to ask about this upstream in an issue like pola-rs/polars#12530 and see what plans they have for implementing that for Lazyframes

@WillAyd
Copy link
Collaborator

WillAyd commented Oct 10, 2024

Closing as I don't think there is anything we can do about this in pantab. For libraries to be usable in pantab, they must conform to the Arrow PyCapsule Interface:

https://arrow.apache.org/docs/format/CDataInterface/PyCapsuleInterface.html

So if desired I think should ask for that adherence with LazyFrames upstream

@WillAyd WillAyd closed this as completed Oct 10, 2024
@skyth540
Copy link
Author

skyth540 commented Oct 10, 2024 via email

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

No branches or pull requests

2 participants