Skip to content

Commit aa71328

Browse files
committed
fix: propagate error from wait_for_future in collect_partitioned method
1 parent ec2abf1 commit aa71328

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dataframe.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ impl PyDataFrame {
410410
/// Executes this DataFrame and collects all results into a vector of vector of RecordBatch
411411
/// maintaining the input partitioning.
412412
fn collect_partitioned(&self, py: Python) -> PyResult<Vec<Vec<PyObject>>> {
413-
let batches = wait_for_future(py, self.df.as_ref().clone().collect_partitioned())
413+
let batches = wait_for_future(py, self.df.as_ref().clone().collect_partitioned())?
414414
.map_err(PyDataFusionError::from)?;
415415

416416
batches

0 commit comments

Comments
 (0)