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

refactor(rust): defensively invalidate metadata and start on copying of min_value, max_value and distinct_count #16593

Merged
merged 1 commit into from
May 30, 2024

Conversation

coastalwhite
Copy link
Collaborator

With this PR, I change the way we clone ChunkedArrays. Now, we have to explicitly state after the clone that it is okay to copy over some metadata properties. This clears the way to properly handle other kinds metadata and I implemented such handling for slice and rechunk.

@github-actions github-actions bot added internal An internal refactor or improvement rust Related to Rust Polars labels May 30, 2024
Copy link

codecov bot commented May 30, 2024

Codecov Report

Attention: Patch coverage is 89.06250% with 28 lines in your changes are missing coverage. Please review.

Project coverage is 81.51%. Comparing base (84ba2d0) to head (399078a).
Report is 4 commits behind head on main.

Files Patch % Lines
crates/polars-core/src/chunked_array/mod.rs 90.59% 11 Missing ⚠️
crates/polars-io/src/parquet/read/to_metadata.rs 60.71% 11 Missing ⚠️
crates/polars-core/src/chunked_array/metadata.rs 66.66% 3 Missing ⚠️
crates/polars-core/src/chunked_array/ops/nulls.rs 0.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main   #16593    +/-   ##
========================================
  Coverage   81.50%   81.51%            
========================================
  Files        1414     1414            
  Lines      185669   185850   +181     
  Branches     3003     3008     +5     
========================================
+ Hits       151334   151496   +162     
- Misses      33818    33838    +20     
+ Partials      517      516     -1     

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

With this PR, I change the way we clone `ChunkedArray`s. Now, we have to explicitly state after the clone that it is okay to copy over some metadata properties. This clears the way to properly handle other kinds metadata and I implemented such handling for `slice` and `rechunk`.
@ritchie46 ritchie46 merged commit 040da95 into pola-rs:main May 30, 2024
21 checks passed
@coastalwhite coastalwhite deleted the invalidate-md branch May 30, 2024 16:34
@c-peters c-peters added the accepted Ready for implementation label Jun 3, 2024
Wouittone pushed a commit to Wouittone/polars that referenced this pull request Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation internal An internal refactor or improvement rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants