-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
pl.read_ipc(..., columns=specific_column_order, use_pyarrow=False)
does not preserve the column order .
#1761
Comments
Maybe we should address this in arrow2; atm it does not support projections over IPC with an order different from the one on the file, but I can't find a reason why it shouldn't; it is just a column swap before creating the record batch. |
Then we ditch the sort 👍 |
@jorgecarleitao I just retested it with the latest polars version and it seems it is still not supported in the latest arrow2. |
Being addressed upstream: jorgecarleitao/arrow2#961 |
Are you using Python or Rust?
Python.
What version of polars are you using?
git commit: e8f6b0f
What operating system are you using polars on?
CentOS 7
Describe your bug.
pl.read_ipc(..., columns=specific_column_order, use_pyarrow=False)
does not preserve the column order specified by the user (as it is sorted by column indices when passing to arrow2 read IPC function).What are the steps to reproduce the behavior?
The text was updated successfully, but these errors were encountered: