We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 162c65a commit a6fd8e4Copy full SHA for a6fd8e4
2 files changed
src/context.rs
@@ -301,9 +301,7 @@ impl PySessionContext {
301
302
#[classmethod]
303
#[pyo3(signature = ())]
304
- fn _global_ctx(
305
- _cls: &Bound<'_, PyType>,
306
- ) -> PyResult<Self> {
+ fn _global_ctx(_cls: &Bound<'_, PyType>) -> PyResult<Self> {
307
Ok(Self {
308
ctx: get_global_ctx().clone(),
309
})
src/utils.rs
@@ -17,12 +17,12 @@
17
18
use crate::errors::DataFusionError;
19
use crate::TokioRuntime;
20
+use datafusion::execution::context::SessionContext;
21
use datafusion::logical_expr::Volatility;
22
use pyo3::prelude::*;
23
use std::future::Future;
24
use std::sync::OnceLock;
25
use tokio::runtime::Runtime;
-use datafusion::execution::context::SessionContext;
26
27
/// Utility to get the Tokio Runtime from Python
28
#[inline]
0 commit comments