-
-
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
zstd compression in write_ipc is incompatible with standalone zstd? #5000
Comments
also woo! #5000 |
LOL. Congrats! ;) |
I don't believe the compression is done on the final byte blob, but more on sub-blobs. By that I mean that the IPC-file probably still has metadata/ipc file structure that is not compressed, but does have certain data chunks that are compressed. @jorgecarleitao is this correct? |
Well, congrats to you :) |
Yeah, that is correct as far as I know. Only columns are compressed, not the file as whole. |
It seems worth documenting this difference. I guess there is a performance benefit that a subset of columns can be decompressed while reading? |
What @ghuls wrote. The rationale is that it allows
Congrats everyone for the 5k! |
I'm having the same problem df = pl.read_ipc(r"..\NASDAQ\AACG.feather") |
@arturdaraujo That should be just a warning, not an error, and I think is unrelated to this issue |
Closing this as it's not a bug. A feature request to change the functionality is welcome (I believe it already exists in the form of #9283). |
Polars version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of polars.
Issue Description
It seems that writing an IPC file with
compression=zstd
leads to a file that cannot be decompressed by the standalonezstd
program. And an IPC file compressed by the standalonezstd
program cannot be read byread_ipc
Reproducible Example
Expected Behavior
I would have expected that these were interchangeable
Installed Versions
The text was updated successfully, but these errors were encountered: