Skip to content

Commit 84f31bb

Browse files
committed
handle error from wait_for_future in count method of PyDataFrame
1 parent aead2a0 commit 84f31bb

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
@@ -864,7 +864,7 @@ impl PyDataFrame {
864864

865865
// Executes this DataFrame to get the total number of rows.
866866
fn count(&self, py: Python) -> PyDataFusionResult<usize> {
867-
Ok(wait_for_future(py, self.df.as_ref().clone().count())??)
867+
Ok(wait_for_future(py, self.df.as_ref().clone().count()).map_err(py_datafusion_err)??)
868868
}
869869

870870
/// Fill null values with a specified value for specific columns

0 commit comments

Comments
 (0)