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

Support projection in arrow::io::ipc:read::FileReader:new #1569

Closed
ghuls opened this issue Oct 20, 2021 · 3 comments
Closed

Support projection in arrow::io::ipc:read::FileReader:new #1569

ghuls opened this issue Oct 20, 2021 · 3 comments
Labels
good first issue Good for newcomers

Comments

@ghuls
Copy link
Collaborator

ghuls commented Oct 20, 2021

Describe your feature request

Support projection (reading only specific columns) when reading an IPC file in lazy mode:

https://github.com/pola-rs/polars/blob/1a6db2919ef312e3da959c5f74da09e6cd99ebb0/polars/polars-io/src/ipc.rs

Support for projection in lazy mode can be adapted from:
https://github.com/pola-rs/polars/blob/master/polars/polars-io/src/parquet.rs

Specifying column names to load from IPC and parquet in eager mode, would be great too:

let ipc_reader = read::FileReader::new(&mut self.reader, metadata, None);

https://github.com/pola-rs/polars/blob/master/polars/polars-io/src/parquet.rs#L111-L117

@illumination-k
Copy link
Contributor

May I work on this issue?

@ghuls
Copy link
Collaborator Author

ghuls commented Nov 12, 2021

@illumination-k I think @ritchie46 is working on pl.scan_ipc(Support projection (reading only specific columns) when reading an IPC file in lazy mode:) already. Or I misunderstood and he was planning to work on it.

If you could tackle reading specified columns in eager mode, that would be great.

@illumination-k
Copy link
Contributor

@ghuls Thanks for your reply. Let me check. The tasks are implementing with_columns, with_projection in earger mode and rewriting finish method, right? If so, I would like to tackle this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants