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): Re-use already decoded metadata for first path (new-parquet-source) #18656

Merged
merged 4 commits into from
Sep 10, 2024

Conversation

nameexhaustion
Copy link
Collaborator

Removes the double-fetch/decode of the first file

@github-actions github-actions bot added internal An internal refactor or improvement rust Related to Rust Polars labels Sep 10, 2024
@nameexhaustion nameexhaustion changed the title refactor(rust): Re-use already decoded metadata for first path refactor(rust): Re-use already decoded metadata for first path (new-parquet-source) Sep 10, 2024
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

Attention: Patch coverage is 0% with 342 lines in your changes missing coverage. Please review.

Project coverage is 79.90%. Comparing base (fe04390) to head (072f0b5).
Report is 41 commits behind head on main.

Files with missing lines Patch % Lines
...-stream/src/nodes/parquet_source/metadata_fetch.rs 0.00% 340 Missing ⚠️
...ates/polars-stream/src/nodes/parquet_source/mod.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #18656      +/-   ##
==========================================
- Coverage   79.91%   79.90%   -0.02%     
==========================================
  Files        1511     1512       +1     
  Lines      203201   203218      +17     
  Branches     2891     2891              
==========================================
- Hits       162388   162376      -12     
- Misses      40263    40292      +29     
  Partials      550      550              

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

pub const fn empty() -> Self {
Self::from_static(&[])
}
pub const EMPTY: Self = Self::from_static(&[]);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

drive-by - MemSlice::EMPTY similar to PlSmallStr::EMPTY

@nameexhaustion nameexhaustion marked this pull request as ready for review September 10, 2024 12:42
@ritchie46 ritchie46 merged commit 5c4e7e9 into pola-rs:main Sep 10, 2024
21 checks passed
@nameexhaustion nameexhaustion deleted the pqs-first-metadata branch September 11, 2024 08:04
@c-peters c-peters added the accepted Ready for implementation label Sep 16, 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
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants