Skip to content

Commit

Permalink
Avoid blocking on async runtime when resolving cloud scans
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse-Bakker committed Jan 16, 2025
1 parent ab8ff43 commit 9d7d20b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/polars-plan/src/plans/conversion/scans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub(super) fn parquet_file_info(
let first_path = &sources.as_paths().unwrap()[0];
feature_gated!("cloud", {
let uri = first_path.to_string_lossy();
get_runtime().block_on(async {
get_runtime().block_on_potential_spawn(async {
let mut reader =
ParquetAsyncReader::from_uri(&uri, cloud_options, None).await?;

Expand Down

0 comments on commit 9d7d20b

Please sign in to comment.