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: Fix scanning cloud paths with spaces #17379

Merged
merged 8 commits into from
Jul 3, 2024

Conversation

nameexhaustion
Copy link
Collaborator

@nameexhaustion nameexhaustion commented Jul 3, 2024

Fixes #17335

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Jul 3, 2024
} else {
std::borrow::Cow::Borrowed(key)
};
let key = percent_encoding::percent_decode_str(key)
Copy link
Collaborator Author

@nameexhaustion nameexhaustion Jul 3, 2024

Choose a reason for hiding this comment

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

revert wrong approach from previous PR for supporting % in paths

let input = if input.starts_with("https://") {
std::borrow::Cow::Borrowed(input)
} else {
// Some paths may contain '%', we need to double-encode as it doesn't seem
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

revert wrong approach

Copy link

codecov bot commented Jul 3, 2024

Codecov Report

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

Project coverage is 80.74%. Comparing base (663fe4c) to head (c496f17).
Report is 5 commits behind head on main.

Files Patch % Lines
crates/polars-io/src/file_cache/utils.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #17379      +/-   ##
==========================================
+ Coverage   80.72%   80.74%   +0.01%     
==========================================
  Files        1475     1475              
  Lines      193383   193383              
  Branches     2760     2760              
==========================================
+ Hits       156113   156142      +29     
+ Misses      36760    36731      -29     
  Partials      510      510              

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

@ritchie46 ritchie46 merged commit d13efa5 into pola-rs:main Jul 3, 2024
24 of 25 checks passed
@nameexhaustion nameexhaustion deleted the space-path branch July 8, 2024 12:40
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.

Cannot scan cloud files containing spaces in path name
3 participants