Skip to content

Commit

Permalink
chore: Split functions crate into multi crates (#17133)
Browse files Browse the repository at this point in the history
* chore: Split functions crate into multi crates

* split new crate databend-functions-scalar-arithmetic databend-functions-scalar-arithmetic-modulo databend-functions-scalar-datetime databend-functions-scalar-decimal-utils

* split numeric basic arithmetic and other bit arithmetic

* fix ut

* restore int/double arithmetic

* fix
  • Loading branch information
TCeason authored Dec 31, 2024
1 parent 6560bf5 commit ddb5c7d
Show file tree
Hide file tree
Showing 31 changed files with 776 additions and 390 deletions.
84 changes: 83 additions & 1 deletion Cargo.lock

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

12 changes: 12 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ members = [
"src/query/expression",
"src/query/formats",
"src/query/functions",
"src/query/functions",
"src/query/functions/src/scalars/mathematics",
"src/query/functions/src/scalars/geographic",
"src/query/functions/src/scalars/timestamp",
"src/query/functions/src/scalars/numeric_basic_arithmetic",
"src/query/functions/src/scalars/arithmetic",
"src/query/management",
"src/query/pipeline/core",
"src/query/pipeline/sinks",
Expand Down Expand Up @@ -184,6 +190,12 @@ databend-enterprise-storage-quota = { path = "src/query/ee_features/storage_quot
databend-enterprise-stream-handler = { path = "src/query/ee_features/stream_handler" }
databend-enterprise-vacuum-handler = { path = "src/query/ee_features/vacuum_handler" }
databend-enterprise-virtual-column = { path = "src/query/ee_features/virtual_column" }
databend-functions-scalar-arithmetic = { path = "src/query/functions/src/scalars/arithmetic" }
databend-functions-scalar-datetime = { path = "src/query/functions/src/scalars/timestamp" }
databend-functions-scalar-decimal = { path = "src/query/functions/src/scalars/decimal" }
databend-functions-scalar-geo = { path = "src/query/functions/src/scalars/geographic" }
databend-functions-scalar-math = { path = "src/query/functions/src/scalars/mathematics" }
databend-functions-scalar-numeric-basic-arithmetic = { path = "src/query/functions/src/scalars/numeric_basic_arithmetic" }
databend-meta = { path = "src/meta/service" }
databend-query = { path = "src/query/service" }
databend-sqllogictests = { path = "tests/sqllogictests" }
Expand Down
8 changes: 6 additions & 2 deletions src/query/functions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ bumpalo = { workspace = true }
chrono = { workspace = true }
crc32fast = { workspace = true }
ctor = { workspace = true }

databend-common-base = { workspace = true }
databend-common-column = { workspace = true }
databend-common-exception = { workspace = true }
Expand All @@ -27,7 +26,12 @@ databend-common-hashtable = { workspace = true }
databend-common-io = { workspace = true }
databend-common-openai = { workspace = true }
databend-common-vector = { workspace = true }
dtparse = { workspace = true }
databend-functions-scalar-arithmetic = { workspace = true }
databend-functions-scalar-datetime = { workspace = true }
databend-functions-scalar-decimal = { workspace = true }
databend-functions-scalar-geo = { workspace = true }
databend-functions-scalar-math = { workspace = true }
databend-functions-scalar-numeric-basic-arithmetic = { workspace = true }
ethnum = { workspace = true }
geo = { workspace = true }
geohash = { workspace = true }
Expand Down
15 changes: 15 additions & 0 deletions src/query/functions/src/scalars/arithmetic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "databend-functions-scalar-arithmetic"
version = "0.1.0"
edition = "2021"

[dependencies]
databend-common-expression = { workspace = true }
databend-functions-scalar-decimal = { workspace = true }
ethnum = { workspace = true }
lexical-core = { workspace = true }
match-template = { workspace = true }
num-traits = { workspace = true }

[package.metadata.cargo-machete]
ignored = ["match-template"]
Loading

0 comments on commit ddb5c7d

Please sign in to comment.