Skip to content

Apache DataFusion SQL Query Engine

Re-export variable provider (#12351)

张林伟22e06b5c3c5f
diff --git a/datafusion/core/src/lib.rs b/datafusion/core/src/lib.rs
index 67f3cb01c0..9c368415bb 100644
--- a/datafusion/core/src/lib.rs
+++ b/datafusion/core/src/lib.rs
@@ -509,7 +509,6 @@ pub mod physical_optimizer;
pub mod physical_planner;
pub mod prelude;
pub mod scalar;
-pub mod variable;
// re-export dependencies from arrow-rs to minimize version maintenance for crate users
pub use arrow;
@@ -602,6 +601,11 @@ pub mod functions_window {
pub use datafusion_functions_window::*;
}
+/// re-export of variable provider for `@name` and `@@name` style runtime values.
+pub mod variable {
+ pub use datafusion_expr::var_provider::{VarProvider, VarType};
+}
+
#[cfg(test)]
pub mod test;
pub mod test_util;
diff --git a/datafusion/core/src/variable/mod.rs b/datafusion/core/src/variable/mod.rs
deleted file mode 100644
index 475f7570a8..0000000000
--- a/datafusion/core/src/variable/mod.rs
+++ /dev/null
@@ -1,20 +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.
-
-//! Variable provider for `@name` and `@@name` style runtime values.
-
-pub use datafusion_expr::var_provider::{VarProvider, VarType};