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

Fixed delta-bitpacked mini-block decoding #56

Merged

Conversation

kornholi
Copy link
Contributor

@kornholi kornholi commented Oct 5, 2021

The input bytes were never consumed while going to the next mini-block,
leading to some very interesting values.

I couldn't find anything with enough data in parquet-testing so I wrote a small test case. It works for all the files I've tested created
by the parquet crate, though.

The input bytes were never consumed while going to the next mini-block,
leading to some very interesting values.

I couldn't find anything with enough data in `parquet-testing` so I
wrote a small test case. It works for all the files I've tested created
by the `parquet` crate, though.
@codecov-commenter
Copy link

Codecov Report

Merging #56 (3f3a713) into main (e21196a) will decrease coverage by 0.17%.
The diff coverage is 95.65%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #56      +/-   ##
==========================================
- Coverage   67.56%   67.38%   -0.18%     
==========================================
  Files          64       64              
  Lines        3493     3523      +30     
==========================================
+ Hits         2360     2374      +14     
- Misses       1133     1149      +16     
Impacted Files Coverage Δ
src/encoding/delta_bitpacked/decoder.rs 93.13% <95.65%> (+7.87%) ⬆️
src/write/statistics.rs 0.00% <0.00%> (ø)
src/statistics/fixed_len_binary.rs 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e21196a...3f3a713. Read the comment docs.

@jorgecarleitao
Copy link
Owner

Thanks a lot for finding and fixing this. Looks great. 💯

@jorgecarleitao jorgecarleitao changed the title Fix delta-bitpacked mini-block decoding Fixed delta-bitpacked mini-block decoding Oct 5, 2021
@jorgecarleitao jorgecarleitao added the bug Something isn't working label Oct 5, 2021
@jorgecarleitao jorgecarleitao merged commit db56311 into jorgecarleitao:main Oct 5, 2021
@kornholi kornholi deleted the fix-miniblock-decoding branch October 5, 2021 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants