Skip to content

Commit c434872

Browse files
authored
remove utils crate and move utils into spark-expr crate (apache#658)
1 parent b6d868c commit c434872

File tree

13 files changed

+13
-86
lines changed

13 files changed

+13
-86
lines changed

native/Cargo.lock

Lines changed: 2 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

native/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# under the License.
1717

1818
[workspace]
19-
members = ["core", "spark-expr", "utils"]
19+
members = ["core", "spark-expr"]
2020
resolver = "2"
2121

2222
[workspace.package]
@@ -47,7 +47,6 @@ datafusion-physical-plan = { git = "https://github.com/apache/datafusion.git", r
4747
datafusion-physical-expr-common = { git = "https://github.com/apache/datafusion.git", rev = "40.0.0", default-features = false }
4848
datafusion-physical-expr = { git = "https://github.com/apache/datafusion.git", rev = "40.0.0", default-features = false }
4949
datafusion-comet-spark-expr = { path = "spark-expr", version = "0.1.0" }
50-
datafusion-comet-utils = { path = "utils", version = "0.1.0" }
5150
chrono = { version = "0.4", default-features = false, features = ["clock"] }
5251
chrono-tz = { version = "0.8" }
5352
num = "0.4"

native/core/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ regex = { workspace = true }
7777
crc32fast = "1.3.2"
7878
simd-adler32 = "0.3.7"
7979
datafusion-comet-spark-expr = { workspace = true }
80-
datafusion-comet-utils = { workspace = true }
8180

8281
[build-dependencies]
8382
prost-build = "0.9.0"

native/core/src/execution/datafusion/expressions/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
// under the License.
1717

1818
// re-export for legacy reasons
19-
pub use datafusion_comet_utils::{array_with_timezone, down_cast_any_ref};
19+
pub use datafusion_comet_spark_expr::utils::{array_with_timezone, down_cast_any_ref};

native/core/src/execution/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub mod operators;
2626
pub mod serde;
2727
pub mod shuffle;
2828
pub(crate) mod sort;
29-
pub use datafusion_comet_utils::timezone;
29+
pub use datafusion_comet_spark_expr::timezone;
3030
pub(crate) mod utils;
3131

3232
mod memory_pool;

native/spark-expr/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ datafusion-common = { workspace = true }
3636
datafusion-functions = { workspace = true }
3737
datafusion-expr = { workspace = true }
3838
datafusion-physical-expr = { workspace = true }
39-
datafusion-comet-utils = { workspace = true }
39+
datafusion-physical-plan = { workspace = true }
40+
chrono-tz = { workspace = true }
4041
num = { workspace = true }
4142
regex = { workspace = true }
4243
thiserror = { workspace = true }

native/spark-expr/src/cast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ use num::{
5555
};
5656
use regex::Regex;
5757

58-
use datafusion_comet_utils::{array_with_timezone, down_cast_any_ref};
58+
use crate::utils::{array_with_timezone, down_cast_any_ref};
5959

6060
use crate::{EvalMode, SparkError, SparkResult};
6161

native/spark-expr/src/if_expr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use datafusion::logical_expr::ColumnarValue;
3131
use datafusion_common::{cast::as_boolean_array, Result};
3232
use datafusion_physical_expr::PhysicalExpr;
3333

34-
use datafusion_comet_utils::down_cast_any_ref;
34+
use crate::utils::down_cast_any_ref;
3535

3636
#[derive(Debug, Hash)]
3737
pub struct IfExpr {

native/spark-expr/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ pub mod cast;
2020
mod error;
2121
mod if_expr;
2222

23+
pub mod timezone;
24+
pub mod utils;
25+
2326
pub use abs::Abs;
2427
pub use error::{SparkError, SparkResult};
2528
pub use if_expr::IfExpr;
File renamed without changes.

0 commit comments

Comments
 (0)