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: Respect glob=False for cloud reads #17860

Merged
merged 9 commits into from
Jul 26, 2024
Merged

Conversation

nameexhaustion
Copy link
Collaborator

Fixes #17822

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Jul 25, 2024
pub fn _limit_path_len_io_err(path: &Path, err: io::Error) -> PolarsError {
let path = path.to_string_lossy();
let msg = if path.len() > 88 {
let msg = if path.len() > 88 && !verbose() {
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 QOL - print the full path if POLARS_VERBOSE is set

],
)
@pytest.mark.parametrize("char", ["[", "*", "?"])
def test_no_glob(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

consolidated all the tests here

Copy link

codecov bot commented Jul 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.56%. Comparing base (2a6ebec) to head (6f20b73).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #17860      +/-   ##
==========================================
+ Coverage   80.48%   80.56%   +0.08%     
==========================================
  Files        1507     1495      -12     
  Lines      197610   197006     -604     
  Branches     2813     2813              
==========================================
- Hits       159040   158720     -320     
+ Misses      38049    37765     -284     
  Partials      521      521              

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

@ritchie46 ritchie46 merged commit 826882d into pola-rs:main Jul 26, 2024
26 checks passed
@nameexhaustion nameexhaustion deleted the no-glob branch July 28, 2024 10:59
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.

Cloud paths with square brackets in paths are not treated as non-glob paths, even with glob=False
2 participants