Skip to content

Commit

Permalink
fix: Panic reading multiple CSV files from cloud (pola-rs#18056)
Browse files Browse the repository at this point in the history
  • Loading branch information
nameexhaustion authored Aug 6, 2024
1 parent 08311b9 commit 32a2325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-io/src/file_cache/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
let uri = uri.clone();

Ok(Arc::new(CloudFileFetcher {
Expand Down

0 comments on commit 32a2325

Please sign in to comment.