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 79c5899 commit 00e180fCopy full SHA for 00e180f
src/dataframe.rs
@@ -764,7 +764,9 @@ impl PyDataFrame {
764
let df = self.df.as_ref().clone();
765
let fut: JoinHandle<datafusion::common::Result<Vec<SendableRecordBatchStream>>> =
766
rt.spawn(async move { df.execute_stream_partitioned().await });
767
- let stream = wait_for_future(py, async { fut.await.expect("Tokio task panicked") })?
+ let stream = wait_for_future(py, async { fut.await })?
768
+ .map_err(|e| PyRuntimeError::new_err(format!("{e}")))?
769
+ .map_err(py_datafusion_err)?;
770
.map_err(py_datafusion_err)?;
771
772
Ok(stream.into_iter().map(PyRecordBatchStream::new).collect())
0 commit comments