Skip to content

Commit

Permalink
chore: Move cast to spark-expr crate (#654)
Browse files Browse the repository at this point in the history
* refactor in preparation for moving cast to spark-expr crate

* errors

* move cast to spark-expr crate

* machete

* refactor errors

* clean up imports
  • Loading branch information
andygrove authored Jul 12, 2024
1 parent 07ac8d2 commit 7783b39
Show file tree
Hide file tree
Showing 12 changed files with 309 additions and 282 deletions.
35 changes: 22 additions & 13 deletions native/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions native/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ datafusion-physical-expr-common = { git = "https://github.com/apache/datafusion.
datafusion-physical-expr = { git = "https://github.com/apache/datafusion.git", rev = "40.0.0", default-features = false }
datafusion-comet-spark-expr = { path = "spark-expr", version = "0.1.0" }
datafusion-comet-utils = { path = "utils", version = "0.1.0" }
chrono = { version = "0.4", default-features = false, features = ["clock"] }
chrono-tz = { version = "0.8" }
num = "0.4"
regex = "1.9.6"
thiserror = "1"

[profile.release]
Expand Down
7 changes: 3 additions & 4 deletions native/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,12 @@ flate2 = "1.0"
lz4 = "1.24"
zstd = "0.11"
rand = "0.8"
num = "0.4"
num = { workspace = true }
bytes = "1.5.0"
tempfile = "3.8.0"
ahash = { version = "0.8", default-features = false }
itertools = "0.11.0"
chrono = { version = "0.4", default-features = false, features = ["clock"] }
chrono-tz = { version = "0.8" }
chrono = { workspace = true }
paste = "1.0.14"
datafusion-common = { workspace = true }
datafusion = { workspace = true }
Expand All @@ -74,7 +73,7 @@ datafusion-physical-expr-common = { workspace = true }
datafusion-physical-expr = { workspace = true }
unicode-segmentation = "^1.10.1"
once_cell = "1.18.0"
regex = "1.9.6"
regex = { workspace = true }
crc32fast = "1.3.2"
simd-adler32 = "0.3.7"
datafusion-comet-spark-expr = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion native/core/src/execution/datafusion/expressions/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
//! Native DataFusion expressions

pub mod bitwise_not;
pub mod cast;
pub use datafusion_comet_spark_expr::cast;
pub mod checkoverflow;
mod normalize_nan;
pub mod scalar_funcs;
Expand Down
Loading

0 comments on commit 7783b39

Please sign in to comment.