This is an automated email from the ASF dual-hosted git repository.
alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new 3df1cb37a Minor: Move RuntimeEnv to `datafusion_execution` (#5580)
3df1cb37a is described below
commit 3df1cb37a577d5f584f26670e2d2760dc6eb23d3
Author: Andrew Lamb <[email protected]>
AuthorDate: Tue Mar 14 12:30:48 2023 +0100
Minor: Move RuntimeEnv to `datafusion_execution` (#5580)
---
datafusion/core/src/execution/mod.rs | 2 +-
datafusion/execution/src/lib.rs | 1 +
datafusion/{core/src/execution => execution/src}/runtime_env.rs | 9 +++------
3 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/datafusion/core/src/execution/mod.rs
b/datafusion/core/src/execution/mod.rs
index 5586c2ce3..ad9b9ce21 100644
--- a/datafusion/core/src/execution/mod.rs
+++ b/datafusion/core/src/execution/mod.rs
@@ -43,12 +43,12 @@
pub mod context;
// backwards compatibility
pub use crate::datasource::file_format::options;
-pub mod runtime_env;
// backwards compatibility
pub use datafusion_execution::disk_manager;
pub use datafusion_execution::memory_pool;
pub use datafusion_execution::registry;
+pub use datafusion_execution::runtime_env;
pub use disk_manager::DiskManager;
pub use registry::FunctionRegistry;
diff --git a/datafusion/execution/src/lib.rs b/datafusion/execution/src/lib.rs
index 55db55cf0..c5ab26b91 100644
--- a/datafusion/execution/src/lib.rs
+++ b/datafusion/execution/src/lib.rs
@@ -19,3 +19,4 @@ pub mod disk_manager;
pub mod memory_pool;
pub mod object_store;
pub mod registry;
+pub mod runtime_env;
diff --git a/datafusion/core/src/execution/runtime_env.rs
b/datafusion/execution/src/runtime_env.rs
similarity index 97%
rename from datafusion/core/src/execution/runtime_env.rs
rename to datafusion/execution/src/runtime_env.rs
index a38d563fa..3163e0e03 100644
--- a/datafusion/core/src/execution/runtime_env.rs
+++ b/datafusion/execution/src/runtime_env.rs
@@ -19,15 +19,12 @@
//! and various system level components that are used during physical plan
execution.
use crate::{
- error::Result,
- execution::disk_manager::{DiskManager, DiskManagerConfig},
-};
-
-use datafusion_common::DataFusionError;
-use datafusion_execution::{
+ disk_manager::{DiskManager, DiskManagerConfig},
memory_pool::{GreedyMemoryPool, MemoryPool, UnboundedMemoryPool},
object_store::ObjectStoreRegistry,
};
+
+use datafusion_common::{DataFusionError, Result};
use object_store::ObjectStore;
use std::fmt::{Debug, Formatter};
use std::path::PathBuf;