Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Added optional projection to IPC FileReader #271

Closed
jorgecarleitao opened this issue Aug 11, 2021 · 1 comment
Closed

Added optional projection to IPC FileReader #271

jorgecarleitao opened this issue Aug 11, 2021 · 1 comment

Comments

@jorgecarleitao
Copy link
Owner

  • ipc::read::FileReader::new now accept a new parameter projection: Option<Vec<usize>> that can be used to filter columns.
  • read::ipc::read_record_batch now accept a new parameter projection: Option<(&[usize], Arc<Schema>)> that can be used to filter columns.

where usize is the index of the column in the IPC schema (known from the file metadata).

Pass None to both to recover the original behavior.

@jorgecarleitao
Copy link
Owner Author

Closed by #264

@jorgecarleitao jorgecarleitao changed the title Add optional projection to IPC FileReader Added optional projection to IPC FileReader Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant