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: Parquet nested values that span several pages #18407

Merged
merged 3 commits into from
Aug 28, 2024

Conversation

coastalwhite
Copy link
Collaborator

Fixes #18400.

This completely rewrites the logic that deal with decoding filtered nested values. This was needed to accommodate the fact that any kind of row value might span several data pages. This was not really accounted for in the previous implementation and where it worked, it was mostly by coincidence.

This also made it possible to add many fast paths for the decoder that were previously not there. Therefore, I think there are also some performance improvements here, but I am not sure how much.

I also wrote two tests to make sure that it actually works.

Fixes pola-rs#18400.

This completely rewrites the logic that deal with decoding filtered nested
values. This was needed to accommodate the fact that any kind of row value
might span several data pages. This was not really accounted for in the
previous implementation and where it worked, it was mostly by coincidence.

This also made it possible to add many fast paths for the decoder that were
previously not there. Therefore, I think there is also some performance
improvements here, but I am not sure how much.

I also wrote two tests to make sure that it actually works.
@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Aug 27, 2024
Copy link

codecov bot commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 97.72727% with 2 lines in your changes missing coverage. Please review.

Project coverage is 79.93%. Comparing base (884b2ac) to head (7570a51).
Report is 3 commits behind head on main.

Files Patch % Lines
...parquet/src/arrow/read/deserialize/nested_utils.rs 97.29% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #18407      +/-   ##
==========================================
+ Coverage   79.87%   79.93%   +0.06%     
==========================================
  Files        1495     1495              
  Lines      200199   200272      +73     
  Branches     2867     2867              
==========================================
+ Hits       159905   160096     +191     
+ Misses      39748    39630     -118     
  Partials      546      546              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ritchie46 ritchie46 merged commit cabaa20 into pola-rs:main Aug 28, 2024
26 checks passed
@coastalwhite coastalwhite deleted the fix-parquet-nested-cross-page branch August 28, 2024 06:51
r-brink pushed a commit to r-brink/polars that referenced this pull request Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to collect slices or masks of Parquet with nested data spanning across more than one data page
2 participants