This is an automated email from the ASF dual-hosted git repository.
findepi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git
The following commit(s) were added to refs/heads/main by this push:
new e8314aba0b chore: clean up dependencies (#13728)
e8314aba0b is described below
commit e8314aba0bd2af4106a5dff49428bfb8fb003d57
Author: Oleks V <[email protected]>
AuthorDate: Fri Dec 13 04:07:27 2024 -0800
chore: clean up dependencies (#13728)
* CI: Warn on unused crates
* CI: Warn on unused crates
* CI: Warn on unused crates
* CI: Warn on unused crates
* CI: Clean up dependencies
* CI: Clean up dependencies
---
datafusion-cli/Cargo.lock | 27 ------------------------
datafusion/common/Cargo.toml | 2 +-
datafusion/core/Cargo.toml | 5 -----
datafusion/execution/Cargo.toml | 4 +++-
datafusion/expr-common/Cargo.toml | 2 ++
datafusion/expr/Cargo.toml | 5 -----
datafusion/ffi/Cargo.toml | 2 +-
datafusion/functions-aggregate-common/Cargo.toml | 2 +-
datafusion/functions-nested/Cargo.toml | 2 +-
datafusion/functions-table/Cargo.toml | 11 ----------
datafusion/macros/Cargo.toml | 1 -
datafusion/optimizer/Cargo.toml | 2 +-
datafusion/physical-plan/Cargo.toml | 4 ++--
datafusion/proto-common/Cargo.toml | 3 ---
datafusion/sqllogictest/Cargo.toml | 8 +++----
datafusion/wasmtest/Cargo.toml | 1 -
test-utils/Cargo.toml | 1 -
17 files changed, 16 insertions(+), 66 deletions(-)
diff --git a/datafusion-cli/Cargo.lock b/datafusion-cli/Cargo.lock
index 89a2e6384f..a0a89fb3d1 100644
--- a/datafusion-cli/Cargo.lock
+++ b/datafusion-cli/Cargo.lock
@@ -1260,7 +1260,6 @@ dependencies = [
"object_store",
"parking_lot",
"parquet",
- "paste",
"rand",
"sqlparser",
"tempfile",
@@ -1326,7 +1325,6 @@ dependencies = [
"arrow-array",
"arrow-buffer",
"arrow-schema",
- "chrono",
"half",
"hashbrown 0.14.5",
"indexmap",
@@ -1357,7 +1355,6 @@ name = "datafusion-execution"
version = "43.0.0"
dependencies = [
"arrow",
- "chrono",
"dashmap",
"datafusion-common",
"datafusion-expr",
@@ -1374,10 +1371,7 @@ dependencies = [
name = "datafusion-expr"
version = "43.0.0"
dependencies = [
- "ahash",
"arrow",
- "arrow-array",
- "arrow-buffer",
"chrono",
"datafusion-common",
"datafusion-doc",
@@ -1390,8 +1384,6 @@ dependencies = [
"recursive",
"serde_json",
"sqlparser",
- "strum",
- "strum_macros",
]
[[package]]
@@ -1401,7 +1393,6 @@ dependencies = [
"arrow",
"datafusion-common",
"itertools",
- "paste",
]
[[package]]
@@ -1460,7 +1451,6 @@ dependencies = [
"datafusion-common",
"datafusion-expr-common",
"datafusion-physical-expr-common",
- "rand",
]
[[package]]
@@ -1481,28 +1471,18 @@ dependencies = [
"itertools",
"log",
"paste",
- "rand",
]
[[package]]
name = "datafusion-functions-table"
version = "43.0.0"
dependencies = [
- "ahash",
"arrow",
- "arrow-schema",
"async-trait",
"datafusion-catalog",
"datafusion-common",
- "datafusion-execution",
"datafusion-expr",
- "datafusion-functions-aggregate-common",
- "datafusion-physical-expr",
- "datafusion-physical-expr-common",
"datafusion-physical-plan",
- "half",
- "indexmap",
- "log",
"parking_lot",
"paste",
]
@@ -1534,7 +1514,6 @@ dependencies = [
name = "datafusion-macros"
version = "43.0.0"
dependencies = [
- "proc-macro2",
"quote",
"syn",
]
@@ -1544,7 +1523,6 @@ name = "datafusion-optimizer"
version = "43.0.0"
dependencies = [
"arrow",
- "async-trait",
"chrono",
"datafusion-common",
"datafusion-expr",
@@ -1632,10 +1610,8 @@ dependencies = [
"indexmap",
"itertools",
"log",
- "once_cell",
"parking_lot",
"pin-project-lite",
- "rand",
"tokio",
]
@@ -3829,9 +3805,6 @@ name = "strum"
version = "0.26.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06"
-dependencies = [
- "strum_macros",
-]
[[package]]
name = "strum_macros"
diff --git a/datafusion/common/Cargo.toml b/datafusion/common/Cargo.toml
index 50bf523d13..82909404e4 100644
--- a/datafusion/common/Cargo.toml
+++ b/datafusion/common/Cargo.toml
@@ -53,7 +53,6 @@ arrow = { workspace = true }
arrow-array = { workspace = true }
arrow-buffer = { workspace = true }
arrow-schema = { workspace = true }
-chrono = { workspace = true }
half = { workspace = true }
hashbrown = { workspace = true }
indexmap = { workspace = true }
@@ -70,4 +69,5 @@ tokio = { workspace = true }
web-time = "1.1.0"
[dev-dependencies]
+chrono = { workspace = true }
rand = { workspace = true }
diff --git a/datafusion/core/Cargo.toml b/datafusion/core/Cargo.toml
index 458af9ad21..1995ab4ca0 100644
--- a/datafusion/core/Cargo.toml
+++ b/datafusion/core/Cargo.toml
@@ -120,7 +120,6 @@ num-traits = { version = "0.2", optional = true }
object_store = { workspace = true }
parking_lot = { workspace = true }
parquet = { workspace = true, optional = true, default-features = true }
-paste = "1.0.15"
rand = { workspace = true }
sqlparser = { workspace = true }
tempfile = { workspace = true }
@@ -140,17 +139,13 @@ datafusion-functions-window-common = { workspace = true }
doc-comment = { workspace = true }
env_logger = { workspace = true }
paste = "^1.0"
-postgres-protocol = "0.6.4"
-postgres-types = { version = "0.2.4", features = ["derive", "with-chrono-0_4"]
}
rand = { workspace = true, features = ["small_rng"] }
rand_distr = "0.4.3"
regex = { workspace = true }
rstest = { workspace = true }
-rust_decimal = { version = "1.27.0", features = ["tokio-pg"] }
serde_json = { workspace = true }
test-utils = { path = "../../test-utils" }
tokio = { workspace = true, features = ["rt-multi-thread", "parking_lot",
"fs"] }
-tokio-postgres = "0.7.7"
[target.'cfg(not(target_os = "windows"))'.dev-dependencies]
nix = { version = "0.29.0", features = ["fs"] }
diff --git a/datafusion/execution/Cargo.toml b/datafusion/execution/Cargo.toml
index ac1eb729b6..bb86868a82 100644
--- a/datafusion/execution/Cargo.toml
+++ b/datafusion/execution/Cargo.toml
@@ -37,7 +37,6 @@ path = "src/lib.rs"
[dependencies]
arrow = { workspace = true }
-chrono = { workspace = true }
dashmap = { workspace = true }
datafusion-common = { workspace = true, default-features = true }
datafusion-expr = { workspace = true }
@@ -48,3 +47,6 @@ parking_lot = { workspace = true }
rand = { workspace = true }
tempfile = { workspace = true }
url = { workspace = true }
+
+[dev-dependencies]
+chrono = { workspace = true }
diff --git a/datafusion/expr-common/Cargo.toml
b/datafusion/expr-common/Cargo.toml
index 109d8e0b89..1ccc6fc172 100644
--- a/datafusion/expr-common/Cargo.toml
+++ b/datafusion/expr-common/Cargo.toml
@@ -40,4 +40,6 @@ path = "src/lib.rs"
arrow = { workspace = true }
datafusion-common = { workspace = true }
itertools = { workspace = true }
+
+[dev-dependencies]
paste = "^1.0"
diff --git a/datafusion/expr/Cargo.toml b/datafusion/expr/Cargo.toml
index 438662e064..2f41292f68 100644
--- a/datafusion/expr/Cargo.toml
+++ b/datafusion/expr/Cargo.toml
@@ -38,10 +38,7 @@ path = "src/lib.rs"
[features]
[dependencies]
-ahash = { workspace = true }
arrow = { workspace = true }
-arrow-array = { workspace = true }
-arrow-buffer = { workspace = true }
chrono = { workspace = true }
datafusion-common = { workspace = true }
datafusion-doc = { workspace = true }
@@ -54,8 +51,6 @@ paste = "^1.0"
recursive = { workspace = true }
serde_json = { workspace = true }
sqlparser = { workspace = true }
-strum = { version = "0.26.1", features = ["derive"] }
-strum_macros = "0.26.0"
[dev-dependencies]
ctor = { workspace = true }
diff --git a/datafusion/ffi/Cargo.toml b/datafusion/ffi/Cargo.toml
index b74bb230a0..fb4701cd89 100644
--- a/datafusion/ffi/Cargo.toml
+++ b/datafusion/ffi/Cargo.toml
@@ -42,10 +42,10 @@ async-ffi = { version = "0.5.0", features = ["abi_stable"] }
async-trait = { workspace = true }
datafusion = { workspace = true, default-features = false }
datafusion-proto = { workspace = true }
-doc-comment = { workspace = true }
futures = { workspace = true }
log = { workspace = true }
prost = { workspace = true }
[dev-dependencies]
+doc-comment = { workspace = true }
tokio = { workspace = true }
diff --git a/datafusion/functions-aggregate-common/Cargo.toml
b/datafusion/functions-aggregate-common/Cargo.toml
index 664746808f..cf6eb99e60 100644
--- a/datafusion/functions-aggregate-common/Cargo.toml
+++ b/datafusion/functions-aggregate-common/Cargo.toml
@@ -42,10 +42,10 @@ arrow = { workspace = true }
datafusion-common = { workspace = true }
datafusion-expr-common = { workspace = true }
datafusion-physical-expr-common = { workspace = true }
-rand = { workspace = true }
[dev-dependencies]
criterion = "0.5"
+rand = { workspace = true }
[[bench]]
harness = false
diff --git a/datafusion/functions-nested/Cargo.toml
b/datafusion/functions-nested/Cargo.toml
index bdfb07031b..5310493b4e 100644
--- a/datafusion/functions-nested/Cargo.toml
+++ b/datafusion/functions-nested/Cargo.toml
@@ -54,10 +54,10 @@ datafusion-physical-expr-common = { workspace = true }
itertools = { workspace = true, features = ["use_std"] }
log = { workspace = true }
paste = "1.0.14"
-rand = "0.8.5"
[dev-dependencies]
criterion = { version = "0.5", features = ["async_tokio"] }
+rand = "0.8.5"
[[bench]]
harness = false
diff --git a/datafusion/functions-table/Cargo.toml
b/datafusion/functions-table/Cargo.toml
index f667bdde58..f722d698f3 100644
--- a/datafusion/functions-table/Cargo.toml
+++ b/datafusion/functions-table/Cargo.toml
@@ -38,25 +38,14 @@ path = "src/lib.rs"
# See more keys and their definitions at
https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
-ahash = { workspace = true }
arrow = { workspace = true }
-arrow-schema = { workspace = true }
async-trait = { workspace = true }
datafusion-catalog = { workspace = true }
datafusion-common = { workspace = true }
-datafusion-execution = { workspace = true }
datafusion-expr = { workspace = true }
-datafusion-functions-aggregate-common = { workspace = true }
-datafusion-physical-expr = { workspace = true }
-datafusion-physical-expr-common = { workspace = true }
datafusion-physical-plan = { workspace = true }
-half = { workspace = true }
-indexmap = { workspace = true }
-log = { workspace = true }
parking_lot = { workspace = true }
paste = "1.0.14"
[dev-dependencies]
arrow = { workspace = true, features = ["test_utils"] }
-criterion = "0.5"
-rand = { workspace = true }
diff --git a/datafusion/macros/Cargo.toml b/datafusion/macros/Cargo.toml
index 07aa07fa92..0c4fdb10a3 100644
--- a/datafusion/macros/Cargo.toml
+++ b/datafusion/macros/Cargo.toml
@@ -37,6 +37,5 @@ path = "src/user_doc.rs"
proc-macro = true
[dependencies]
-proc-macro2 = "1.0"
quote = "1.0.37"
syn = { version = "2.0.79", features = ["full"] }
diff --git a/datafusion/optimizer/Cargo.toml b/datafusion/optimizer/Cargo.toml
index c0f17de6c5..9979df689b 100644
--- a/datafusion/optimizer/Cargo.toml
+++ b/datafusion/optimizer/Cargo.toml
@@ -37,7 +37,6 @@ path = "src/lib.rs"
[dependencies]
arrow = { workspace = true }
-async-trait = { workspace = true }
chrono = { workspace = true }
datafusion-common = { workspace = true, default-features = true }
datafusion-expr = { workspace = true }
@@ -50,6 +49,7 @@ regex = { workspace = true }
regex-syntax = "0.8.0"
[dev-dependencies]
+async-trait = { workspace = true }
ctor = { workspace = true }
datafusion-functions-aggregate = { workspace = true }
datafusion-functions-window-common = { workspace = true }
diff --git a/datafusion/physical-plan/Cargo.toml
b/datafusion/physical-plan/Cargo.toml
index bb0e21fdfd..83dc954953 100644
--- a/datafusion/physical-plan/Cargo.toml
+++ b/datafusion/physical-plan/Cargo.toml
@@ -60,16 +60,16 @@ hashbrown = { workspace = true }
indexmap = { workspace = true }
itertools = { workspace = true, features = ["use_std"] }
log = { workspace = true }
-once_cell = "1.18.0"
parking_lot = { workspace = true }
pin-project-lite = "^0.2.7"
-rand = { workspace = true }
tokio = { workspace = true }
[dev-dependencies]
criterion = { version = "0.5", features = ["async_futures"] }
datafusion-functions-aggregate = { workspace = true }
datafusion-functions-window = { workspace = true }
+once_cell = "1.18.0"
+rand = { workspace = true }
rstest = { workspace = true }
rstest_reuse = "0.7.0"
tokio = { workspace = true, features = [
diff --git a/datafusion/proto-common/Cargo.toml
b/datafusion/proto-common/Cargo.toml
index 102940716c..ba99f8639d 100644
--- a/datafusion/proto-common/Cargo.toml
+++ b/datafusion/proto-common/Cargo.toml
@@ -41,9 +41,7 @@ json = ["serde", "serde_json", "pbjson"]
[dependencies]
arrow = { workspace = true }
-chrono = { workspace = true }
datafusion-common = { workspace = true }
-object_store = { workspace = true }
pbjson = { workspace = true, optional = true }
prost = { workspace = true }
serde = { version = "1.0", optional = true }
@@ -51,4 +49,3 @@ serde_json = { workspace = true, optional = true }
[dev-dependencies]
doc-comment = { workspace = true }
-tokio = { workspace = true }
diff --git a/datafusion/sqllogictest/Cargo.toml
b/datafusion/sqllogictest/Cargo.toml
index 849003f8ee..f254e0db41 100644
--- a/datafusion/sqllogictest/Cargo.toml
+++ b/datafusion/sqllogictest/Cargo.toml
@@ -48,15 +48,15 @@ half = { workspace = true, default-features = true }
itertools = { workspace = true }
log = { workspace = true }
object_store = { workspace = true }
-postgres-protocol = { version = "0.6.4", optional = true }
-postgres-types = { version = "0.2.4", optional = true }
-rust_decimal = { version = "1.27.0" }
+postgres-protocol = { version = "0.6.7", optional = true }
+postgres-types = { version = "0.2.8", features = ["derive",
"with-chrono-0_4"], optional = true }
+rust_decimal = { version = "1.36.0", features = ["tokio-pg"] }
sqllogictest = "0.23.0"
sqlparser = { workspace = true }
tempfile = { workspace = true }
thiserror = "2.0.0"
tokio = { workspace = true }
-tokio-postgres = { version = "0.7.7", optional = true }
+tokio-postgres = { version = "0.7.12", optional = true }
[features]
avro = ["datafusion/avro"]
diff --git a/datafusion/wasmtest/Cargo.toml b/datafusion/wasmtest/Cargo.toml
index 2440244d08..69b9bd61a3 100644
--- a/datafusion/wasmtest/Cargo.toml
+++ b/datafusion/wasmtest/Cargo.toml
@@ -43,7 +43,6 @@ chrono = { version = "0.4", features = ["wasmbind"] }
# code size when deploying.
console_error_panic_hook = { version = "0.1.1", optional = true }
datafusion = { workspace = true }
-
datafusion-common = { workspace = true, default-features = true }
datafusion-execution = { workspace = true }
datafusion-expr = { workspace = true }
diff --git a/test-utils/Cargo.toml b/test-utils/Cargo.toml
index d2763f507f..4ad6e213cd 100644
--- a/test-utils/Cargo.toml
+++ b/test-utils/Cargo.toml
@@ -30,5 +30,4 @@ arrow = { workspace = true }
chrono-tz = { version = "0.10.0", default-features = false }
datafusion-common = { workspace = true, default-features = true }
env_logger = { workspace = true }
-paste = "1.0.15"
rand = { workspace = true }
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]