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

feat: Add boolean Parquet HybridRle encoding #18022

Merged
merged 1 commit into from
Aug 4, 2024

Conversation

coastalwhite
Copy link
Collaborator

This is a more efficient encoding for Booleans especially when considering columns that might be biased towards either true or false.

For a column with 100_000_000 times True, we see.

# Uncompressed
No Hybrid RLE: 12M
Hybrid RLE: 66K

# ZSTD compression
No Hybrid RLE: 75K
Hybrid RLE: 70K

@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars labels Aug 2, 2024
Copy link

codecov bot commented Aug 2, 2024

Codecov Report

Attention: Patch coverage is 97.14286% with 1 line in your changes missing coverage. Please review.

Project coverage is 80.50%. Comparing base (d5265d3) to head (410f186).
Report is 1 commits behind head on main.

Files Patch % Lines
...es/polars-parquet/src/arrow/write/boolean/basic.rs 96.42% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #18022   +/-   ##
=======================================
  Coverage   80.49%   80.50%           
=======================================
  Files        1496     1496           
  Lines      196786   196807   +21     
  Branches     2817     2817           
=======================================
+ Hits       158407   158437   +30     
+ Misses      37858    37849    -9     
  Partials      521      521           

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

Copy link
Member

@ritchie46 ritchie46 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one!

@ritchie46 ritchie46 merged commit c91e078 into pola-rs:main Aug 4, 2024
22 checks passed
@coastalwhite coastalwhite deleted the parquet-boolean-write branch August 4, 2024 09:25
@c-peters c-peters added the accepted Ready for implementation label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants