-
Notifications
You must be signed in to change notification settings - Fork 81
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
LZ4_RAW parquet support #3148
Comments
This can't simply be resolved by treating |
DH is unable to read "newer" parquet files that are ostensibly written out as 'lz4'. Python / c++ pyarrow treat this user string as the "new" LZ4_RAW codec, with LZ4 being deprecated since at least March 2021, https://github.com/apache/parquet-format/blob/master/Compression.md#lz4:
We will need to bump our version of parquet-hadoop past 1.12.3 once apache/parquet-java#1000 gets officially released to support this feature. https://github.com/apache/parquet-testing/blob/master/data/lz4_raw_compressed.parquet and https://github.com/apache/parquet-testing/blob/master/data/lz4_raw_compressed_larger.parquet should be the minimum viable files for testing purposes. pyarrow 4.0.1 released May 30, 2021 was the last python / C++ release to write out LZ4 codec. https://pypi.org/project/pyarrow/4.0.1/ |
Potentially related to #806 |
Looks like there is some "good" news; there has been some activity recently on parquet-mr suggesting they are preparing a new release (first in 2 years): https://github.com/apache/parquet-mr/releases/tag/apache-parquet-1.13.0-rc0 |
Note: I've tested out 1.13.0-SNAPSHOT that has the proper LZ4_RAW codec - but the hadoop |
Description
It appears that the "LZ4" constant in pandas/pyarrow results in a compression value that can't be read by our Java code.
Steps to reproduce
Create a dataframe and write it to a parquet file with LZ4 compression:
Expected results
The parquet file can be decompressed and read
Actual results
Likely we could resolve this by treating the value "LZ4_RAW" as if it was "LZ4" in our codec factory.
Versions
The text was updated successfully, but these errors were encountered: