Skip to content

Fix RLE encode/decode#57

Merged
kessler merged 1 commit intoironSource:masterfrom
ZJONSSON:fix-rle
Jan 16, 2019
Merged

Fix RLE encode/decode#57
kessler merged 1 commit intoironSource:masterfrom
ZJONSSON:fix-rle

Conversation

@ZJONSSON
Copy link
Copy Markdown
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 asmuth and kessler March 1, 2018 02:07
@ZJONSSON ZJONSSON mentioned this pull request Mar 1, 2018
@ZJONSSON
Copy link
Copy Markdown
Contributor Author

ZJONSSON commented Mar 1, 2018

RLE tests verified by parquet-mr here #56

@aconanlai
Copy link
Copy Markdown

@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