Skip to content

Commit 9872283

Browse files
authored
Export to_datafusion_err from the util crate root (#1487)
* Re-export error helpers from crate root Publicly re-export curated error helpers, including to_datafusion_err, from the crate root. Add a regression test in crates/util/tests/root_exports.rs to ensure correct functionality in an integration-test context. * Restrict re-exported items in lib.rs Make only to_datafusion_err publicly re-exported from the crate root. Keep PyDataFusionError and PyDataFusionResult as private imports for internal use, enhancing encapsulation and reducing exposure of non-essential components. * feat: remove unnecessary blank line in lib.rs to improve code formatting * rm root_exports.rs
1 parent 0a9ca68 commit 9872283

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/util/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ use tokio::runtime::Runtime;
3636
use tokio::task::JoinHandle;
3737
use tokio::time::sleep;
3838

39-
use crate::errors::{PyDataFusionError, PyDataFusionResult, to_datafusion_err};
40-
4139
pub mod errors;
40+
pub use crate::errors::to_datafusion_err;
41+
use crate::errors::{PyDataFusionError, PyDataFusionResult};
4242

4343
/// Utility to get the Tokio Runtime from Python
4444
#[inline]

0 commit comments

Comments
 (0)