Skip to content

Commit

Permalink
bypass madsim
Browse files Browse the repository at this point in the history
  • Loading branch information
chenzl25 committed Jul 11, 2024
1 parent 27d75b0 commit 1cedcb3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/frontend/src/expr/table_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ impl TableFunction {
.into());
}

#[cfg(madsim)]
return Err(crate::error::ErrorCode::BindError(
"file_scan can't be used in the madsim mode".to_string(),
)
.into());

#[cfg(not(madsim))]
tokio::task::block_in_place(|| {
tokio::runtime::Handle::current().block_on(async {
let parquet_stream_builder = create_parquet_stream_builder(
Expand Down

0 comments on commit 1cedcb3

Please sign in to comment.