We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0179619 commit 79c5899Copy full SHA for 79c5899
src/dataframe.rs
@@ -753,7 +753,8 @@ impl PyDataFrame {
753
let df = self.df.as_ref().clone();
754
let fut: JoinHandle<datafusion::common::Result<SendableRecordBatchStream>> =
755
rt.spawn(async move { df.execute_stream().await });
756
- let stream = wait_for_future(py, async { fut.await.expect("Tokio task panicked") })??;
+ let stream = wait_for_future(py, async { fut.await })?
757
+ .map_err(|e| PyRuntimeError::new_err(format!("{e}")))??;
758
Ok(PyRecordBatchStream::new(stream))
759
}
760
0 commit comments