From 8eec13e60c22886065d61805f9897a62cc8327e0 Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Tue, 9 Jul 2024 14:53:59 -0600 Subject: [PATCH] rename crate to datafusion-comet-spark-expr --- native/Cargo.lock | 24 +++++++++---------- native/core/Cargo.toml | 2 +- .../execution/datafusion/expressions/mod.rs | 2 +- .../core/src/execution/datafusion/planner.rs | 2 +- native/spark-expr/Cargo.toml | 4 ++-- native/spark-expr/README.md | 2 +- 6 files changed, 18 insertions(+), 18 deletions(-) diff --git a/native/Cargo.lock b/native/Cargo.lock index f6a6a3e0b..c8027962b 100644 --- a/native/Cargo.lock +++ b/native/Cargo.lock @@ -852,11 +852,11 @@ dependencies = [ "crc32fast", "criterion", "datafusion", + "datafusion-comet-spark-expr", "datafusion-common", "datafusion-expr", "datafusion-physical-expr", "datafusion-physical-expr-common", - "datafusion-spark-expr", "flate2", "futures", "half", @@ -888,6 +888,17 @@ dependencies = [ "zstd", ] +[[package]] +name = "datafusion-comet-spark-expr" +version = "0.1.0" +dependencies = [ + "arrow", + "arrow-schema", + "datafusion", + "datafusion-common", + "datafusion-functions", +] + [[package]] name = "datafusion-common" version = "39.0.0" @@ -1089,17 +1100,6 @@ dependencies = [ "tokio", ] -[[package]] -name = "datafusion-spark-expr" -version = "0.1.0" -dependencies = [ - "arrow", - "arrow-schema", - "datafusion", - "datafusion-common", - "datafusion-functions", -] - [[package]] name = "datafusion-sql" version = "39.0.0" diff --git a/native/core/Cargo.toml b/native/core/Cargo.toml index 040e1dbb6..3820bdd38 100644 --- a/native/core/Cargo.toml +++ b/native/core/Cargo.toml @@ -77,7 +77,7 @@ once_cell = "1.18.0" regex = "1.9.6" crc32fast = "1.3.2" simd-adler32 = "0.3.7" -datafusion-spark-expr = { path = "../spark-expr", version = "0.1.0" } +datafusion-comet-spark-expr = { path = "../spark-expr", version = "0.1.0" } [build-dependencies] prost-build = "0.9.0" diff --git a/native/core/src/execution/datafusion/expressions/mod.rs b/native/core/src/execution/datafusion/expressions/mod.rs index f3fbaaac9..98b422dce 100644 --- a/native/core/src/execution/datafusion/expressions/mod.rs +++ b/native/core/src/execution/datafusion/expressions/mod.rs @@ -44,7 +44,7 @@ mod utils; pub mod variance; pub mod xxhash64; -pub use datafusion_spark_expr::EvalMode; +pub use datafusion_comet_spark_expr::EvalMode; fn arithmetic_overflow_error(from_type: &str) -> CometError { CometError::ArithmeticOverflow { diff --git a/native/core/src/execution/datafusion/planner.rs b/native/core/src/execution/datafusion/planner.rs index 2913d5f27..b0034144f 100644 --- a/native/core/src/execution/datafusion/planner.rs +++ b/native/core/src/execution/datafusion/planner.rs @@ -105,7 +105,7 @@ use crate::{ }; use super::expressions::{create_named_struct::CreateNamedStruct, EvalMode}; -use datafusion_spark_expr::abs::Abs; +use datafusion_comet_spark_expr::abs::Abs; // For clippy error on type_complexity. type ExecResult = Result; diff --git a/native/spark-expr/Cargo.toml b/native/spark-expr/Cargo.toml index 26530f5be..d10d04944 100644 --- a/native/spark-expr/Cargo.toml +++ b/native/spark-expr/Cargo.toml @@ -16,7 +16,7 @@ # under the License. [package] -name = "datafusion-spark-expr" +name = "datafusion-comet-spark-expr" description = "DataFusion expressions that emulate Apache Spark's behavior" version = { workspace = true } homepage = { workspace = true } @@ -34,5 +34,5 @@ datafusion-common = { workspace = true } datafusion-functions = { workspace = true } [lib] -name = "datafusion_spark_expr" +name = "datafusion_comet_spark_expr" path = "src/lib.rs" diff --git a/native/spark-expr/README.md b/native/spark-expr/README.md index 097a39953..a7ee75363 100644 --- a/native/spark-expr/README.md +++ b/native/spark-expr/README.md @@ -17,7 +17,7 @@ specific language governing permissions and limitations under the License. --> -# datafusion-spark-expr: Spark-compatible Expressions +# datafusion-comet-spark-expr: Spark-compatible Expressions This crate provides Apache Spark-compatible expressions for use with DataFusion and is maintained as part of the [Apache DataFusion Comet](https://github.com/apache/datafusion-comet/) subproject. \ No newline at end of file