From 8c4c4bf4e50f829f767382cf4e01b86d3dd560e5 Mon Sep 17 00:00:00 2001 From: Michael-J-Ward Date: Wed, 1 May 2024 03:18:10 -0500 Subject: [PATCH] update Catalog::table --- src/catalog.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/catalog.rs b/src/catalog.rs index ba7e22255..49fe14046 100644 --- a/src/catalog.rs +++ b/src/catalog.rs @@ -97,7 +97,7 @@ impl PyDatabase { } fn table(&self, name: &str, py: Python) -> PyResult { - if let Some(table) = wait_for_future(py, self.database.table(name)) { + if let Some(table) = wait_for_future(py, self.database.table(name))? { Ok(PyTable::new(table)) } else { Err(DataFusionError::Common(format!("Table not found: {name}")).into())