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 encode/decode #57

Merged
merged 1 commit into from
Jan 16, 2019
Merged

Fix RLE encode/decode #57

merged 1 commit into from
Jan 16, 2019

Conversation

ZJONSSON
Copy link
Contributor

@ZJONSSON ZJONSSON commented Mar 1, 2018

  • bitpacking should work for any length of data, not just multiple of 8 (last packed is padded if less than 8)
  • Improve runs estimation - only start a new run if we are at a mod 8 === 0, otherwise use bitpacking

Added a test to codec_rle.js that fails on master but works on this branch (encoding of more than 8 values)

This seems to fix some issues related to opening parquet files in parquet-mr and vice-versa

* bitpacking should work for any length of data, not just multiple of 8 (last packed is padded if less than 8)

* Improve runs estimation - only start a new run if we are at a mod 8 === 0, otherwise use bitpacking
@ZJONSSON ZJONSSON requested review from kessler and asmuth March 1, 2018 02:07
@ZJONSSON ZJONSSON mentioned this pull request Mar 1, 2018
@ZJONSSON
Copy link
Contributor Author

ZJONSSON commented Mar 1, 2018

RLE tests verified by parquet-mr here #56

@aconanlai
Copy link

@kessler
bumping this, as this solves a problem for us where nested fields cannot be read by spark - from what i can see in the issues, other people have this issue as well and this PR fixes it

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.

3 participants