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 Arrow IPC streaming files #3778

Closed
joshuataylor opened this issue Jun 23, 2022 · 1 comment · Fixed by #3783
Closed

Support Arrow IPC streaming files #3778

joshuataylor opened this issue Jun 23, 2022 · 1 comment · Fixed by #3783

Comments

@joshuataylor
Copy link
Contributor

This is crossposted from pola-rs/nodejs-polars#109 , to track the feature of reading and writing Arrow streaming files.

For context about Arrow Streams, please read https://jorgecarleitao.github.io/arrow2/io/ipc_stream_read.html .
Here is a quick primer about the streaming files from Arrow: https://arrow.apache.org/docs/python/ipc.html

The initial version should only support reading the entire file, then future work can be done on the actual streaming of data if there is enough demand.

I'm keen to get this into polars, as Snowflake uses this for their response format and would be awesome to get it in for reading data straight from SF into Polars (with minimal massaging of data).

I've started looking into this, and the major blocker I can see is projections.

In arrow2, projections are not supported here: https://github.com/jorgecarleitao/arrow2/blob/main/src/io/ipc/read/stream.rs#L185

So we will need to build the projection from the chunks.

Thoughts?

@jorgecarleitao
Copy link
Collaborator

Added tracking issue on arrow2: jorgecarleitao/arrow2#1095

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 a pull request may close this issue.

2 participants