8000 stop exporting TokioRuntime to python · apache/datafusion-python@163b221 · GitHub
[go: up one dir, main page]

Skip to content

Commit 163b221

Browse files
stop exporting TokioRuntime to python
1 parent ff1e758 commit 163b221

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

python/datafusion/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from .catalog import Catalog, Database, Table
3737

3838
# The following imports are okay to remain as opaque to the user.
39-
from ._internal import Config, LogicalPlan, ExecutionPlan, runtime
39+
from ._internal import Config, LogicalPlan, ExecutionPlan
4040

4141
from .record_batch import RecordBatchStream, RecordBatch
4242

@@ -73,7 +73,6 @@
7373
"literal",
7474
"lit",
7575
"DFSchema",
76-
"runtime",
7776
"Catalog",
7877
"Database",
7978
"Table",

src/lib.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ pub mod utils;
6666
static GLOBAL: MiMalloc = MiMalloc;
6767

6868
// Used to define Tokio Runtime as a Python module attribute
69-
#[pyclass]
7069
pub(crate) struct TokioRuntime(tokio::runtime::Runtime);
7170

7271
/// Low-level DataFusion internal package.
@@ -75,11 +74,6 @@ pub(crate) struct TokioRuntime(tokio::runtime::Runtime);
7574
/// datafusion directory.
7675
#[pymodule]
7776
fn _internal(py: Python, m: Bound<'_, PyModule>) -> PyResult<()> {
78-
// Register the Tokio Runtime as a module attribute so we can reuse it
79-
m.add(
80-
"runtime",
81-
TokioRuntime(tokio::runtime::Runtime::new().unwrap()),
82-
)?;
8377
// Register the python classes
8478
m.add_class::<catalog::PyCatalog>()?;
8579
m.add_class::<catalog::PyDatabase>()?;

0 commit comments

Comments
 (0)
0