File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -393,12 +393,12 @@ impl PyDataFrame {
393393 /// Unless some order is specified in the plan, there is no
394394 /// guarantee of the order of the result.
395395 fn collect ( & self , py : Python ) -> PyResult < Vec < PyObject > > {
396- let batches = wait_for_future ( py, self . df . as_ref ( ) . clone ( ) . collect ( ) )
396+ let batches = wait_for_future ( py, self . df . as_ref ( ) . clone ( ) . collect ( ) ) ?
397397 . map_err ( PyDataFusionError :: from) ?;
398+
398399 // cannot use PyResult<Vec<RecordBatch>> return type due to
399400 // https://github.com/PyO3/pyo3/issues/1813
400- let result = batches. into_iter ( ) . map ( |rb| rb. to_pyarrow ( py) ) . collect ( ) ;
401- result
401+ batches. into_iter ( ) . map ( |rb| rb. to_pyarrow ( py) ) . collect ( )
402402 }
403403
404404 /// Cache DataFrame.
You can’t perform that action at this time.
0 commit comments