Skip to content

Apache DataFusion SQL Query Engine

Move LogicalPlan tree_node modul (#9995)

Andrew Lamb86ad8a580863
diff --git a/datafusion/expr/src/logical_plan/mod.rs b/datafusion/expr/src/logical_plan/mod.rs
index 84781cb2e9..a1fe7a6f0a 100644
--- a/datafusion/expr/src/logical_plan/mod.rs
+++ b/datafusion/expr/src/logical_plan/mod.rs
@@ -22,6 +22,7 @@ pub mod dml;
mod extension;
mod plan;
mod statement;
+mod tree_node;
pub use builder::{
build_join_schema, table_scan, union, wrap_projection_for_join_if_necessary,
diff --git a/datafusion/expr/src/logical_plan/plan.rs b/datafusion/expr/src/logical_plan/plan.rs
index 4f55bbfe3f..860fd7daaf 100644
--- a/datafusion/expr/src/logical_plan/plan.rs
+++ b/datafusion/expr/src/logical_plan/plan.rs
@@ -56,7 +56,7 @@ use datafusion_common::{
// backwards compatibility
use crate::display::PgJsonVisitor;
-use crate::tree_node::expr::transform_option_vec;
+use crate::tree_node::transform_option_vec;
pub use datafusion_common::display::{PlanType, StringifiedPlan, ToStringifiedPlan};
pub use datafusion_common::{JoinConstraint, JoinType};
diff --git a/datafusion/expr/src/tree_node/plan.rs b/datafusion/expr/src/logical_plan/tree_node.rs
similarity index 100%
rename from datafusion/expr/src/tree_node/plan.rs
rename to datafusion/expr/src/logical_plan/tree_node.rs
diff --git a/datafusion/expr/src/tree_node/expr.rs b/datafusion/expr/src/tree_node.rs
similarity index 100%
rename from datafusion/expr/src/tree_node/expr.rs
rename to datafusion/expr/src/tree_node.rs
diff --git a/datafusion/expr/src/tree_node/mod.rs b/datafusion/expr/src/tree_node/mod.rs
deleted file mode 100644
index 3f8bb6d325..0000000000
--- a/datafusion/expr/src/tree_node/mod.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-//! Tree node implementation for logical expr and logical plan
-
-pub mod expr;
-pub mod plan;