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: Panic reading multiple CSV files from cloud #18056

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

nameexhaustion
Copy link
Collaborator

Fixes #18053

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Aug 6, 2024
@@ -95,7 +95,7 @@ pub fn init_entries_from_uri_list(
let cloud_path = object_path_from_str(&prefix)?;

let object_store =
object_stores[std::cmp::min(i, object_stores.len())].clone();
object_stores[std::cmp::min(i, object_stores.len() - 1)].clone();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

silly mistake 😅

we unfortunately can't add this to our test suite because it needs a real bucket

Copy link

Choose a reason for hiding this comment

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

Happens to the best of us 😅

Copy link

Choose a reason for hiding this comment

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

Thanks for the quick fix!

Copy link
Contributor

Choose a reason for hiding this comment

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

@nameexhaustion Would it make sense to add a test which uses Azurite (using docker) or similar to test reading from "the cloud"? https://github.com/Azure/Azurite

@nameexhaustion nameexhaustion marked this pull request as ready for review August 6, 2024 10:36
Copy link

codecov bot commented Aug 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.37%. Comparing base (ca6d46c) to head (e16e3d0).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #18056      +/-   ##
==========================================
- Coverage   80.39%   80.37%   -0.02%     
==========================================
  Files        1496     1496              
  Lines      197480   197480              
  Branches     2820     2820              
==========================================
- Hits       158764   158728      -36     
- Misses      38194    38230      +36     
  Partials      522      522              

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

@ritchie46 ritchie46 merged commit 32a2325 into pola-rs:main Aug 6, 2024
22 checks passed
@nameexhaustion nameexhaustion deleted the csv-cloud-multi branch August 29, 2024 09:58
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.

Error index out of bounds when scanning multiple CSV files from S3 with .scan_csv
4 participants