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: Scanning hive partitioned files where hive columns are partially included in the file #18626

Merged
merged 5 commits into from
Sep 10, 2024

Conversation

nameexhaustion
Copy link
Collaborator

@nameexhaustion nameexhaustion commented Sep 9, 2024

No description provided.

@nameexhaustion nameexhaustion changed the title Hive partial fix: Scanning hive partitioned files where hive columns are partially included in the file Sep 9, 2024
@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars and removed title needs formatting labels Sep 9, 2024
};
// Insert these hive columns in the order they are stored in the file.
for s in hive_columns {
let i = match df.get_columns().binary_search_by_key(
Copy link
Member

Choose a reason for hiding this comment

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

This feels very expensive? Is there a way we can make a hashmap up front to amortize cost?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I didn't like this either, I have cooked something up and pushed it in a commit 😄

Copy link

codecov bot commented Sep 9, 2024

Codecov Report

Attention: Patch coverage is 85.00000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 79.91%. Comparing base (253057a) to head (800f4e6).
Report is 53 commits behind head on main.

Files with missing lines Patch % Lines
...ates/polars-plan/src/plans/conversion/dsl_to_ir.rs 52.63% 9 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #18626   +/-   ##
=======================================
  Coverage   79.91%   79.91%           
=======================================
  Files        1506     1506           
  Lines      203047   203086   +39     
  Branches     2889     2891    +2     
=======================================
+ Hits       162271   162306   +35     
- Misses      40226    40230    +4     
  Partials      550      550           

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

@nameexhaustion nameexhaustion marked this pull request as ready for review September 9, 2024 13:02
@ritchie46 ritchie46 merged commit 5ccb238 into pola-rs:main Sep 10, 2024
26 checks passed
@nameexhaustion nameexhaustion deleted the hive-partial 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 fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants