Skip to content

Commit

Permalink
feat: decimal128 type in common (#2696)
Browse files Browse the repository at this point in the history
* feat: decimal type in common

* chore: rename

* feat: decimal128 compare

* chore: clippy

* chore: typos

* chore: cr comment

Co-authored-by: Dennis Zhuang <[email protected]>

* chore: cr comment.

Co-authored-by: Zhenchi <[email protected]>

---------

Co-authored-by: Dennis Zhuang <[email protected]>
Co-authored-by: Zhenchi <[email protected]>
  • Loading branch information
3 people authored Nov 6, 2023
1 parent 6fd04e3 commit 0a91335
Show file tree
Hide file tree
Showing 6 changed files with 528 additions and 1 deletion.
29 changes: 28 additions & 1 deletion Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ members = [
"src/common/telemetry",
"src/common/test-util",
"src/common/time",
"src/common/decimal",
"src/common/version",
"src/datanode",
"src/datatypes",
Expand Down Expand Up @@ -68,6 +69,7 @@ arrow-flight = "47.0"
arrow-schema = { version = "47.0", features = ["serde"] }
async-stream = "0.3"
async-trait = "0.1"
bigdecimal = "0.4.2"
chrono = { version = "0.4", features = ["serde"] }
datafusion = { git = "https://github.com/apache/arrow-datafusion.git", rev = "26e43acac3a96cec8dd4c8365f22dfb1a84306e9" }
datafusion-common = { git = "https://github.com/apache/arrow-datafusion.git", rev = "26e43acac3a96cec8dd4c8365f22dfb1a84306e9" }
Expand Down Expand Up @@ -104,6 +106,7 @@ reqwest = { version = "0.11", default-features = false, features = [
"rustls-tls-native-roots",
"stream",
] }
rust_decimal = "1.32.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
smallvec = "1"
Expand Down
15 changes: 15 additions & 0 deletions src/common/decimal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[package]
name = "decimal"
version.workspace = true
edition.workspace = true
license.workspace = true

[dependencies]
arrow.workspace = true
bigdecimal = { workspace = true }
common-error = { workspace = true }
common-macro = { workspace = true }
rust_decimal = { workspace = true }
serde.workspace = true
serde_json = "1.0"
snafu.workspace = true
Loading

0 comments on commit 0a91335

Please sign in to comment.