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

Fix RLE and dictionary bugs #81

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

garyirick-rga
Copy link

This PR fixes 2 bugs:

  • RLE encoding and decoding does not work correctly if the dictionary has > 255 entries.
  • A column chunk with a dictionary and data pages in both PLAIN and PLAIN_DICTIONARY decodes the PLAN pages incorrectly.

There is no unit test for the second fix. I could only reproduce this with a 290 MB .parquet file generated by Apache Spark, and was unable to find another library that will create a file with both PLAIN and PLAIN_DICTIONARY pages in the same chunk.

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 this pull request may close these issues.

1 participant