Skip to content

Commit

Permalink
Merge pull request #10297 from TCeason/support_decimal256
Browse files Browse the repository at this point in the history
feat(query): support decimal256 select insert
  • Loading branch information
mergify[bot] authored Mar 3, 2023
2 parents 26ea23d + d11c6bb commit 2404959
Show file tree
Hide file tree
Showing 5 changed files with 342 additions and 16 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ rpath = false
# For example:
# arrow-format = { git = "https://github.com/datafuse-extras/arrow-format", rev = "78dacc1" }

arrow2 = { git = "https://github.com/jorgecarleitao/arrow2", rev = "d06323a" }
arrow2 = { git = "https://github.com/jorgecarleitao/arrow2", rev = "9749aee" }
parquet2 = { git = "https://github.com/jorgecarleitao/parquet2", rev = "ed0e1ff" }
limits-rs = { git = "https://github.com/datafuse-extras/limits-rs", rev = "abfcf7b" }
metrics = { git = "https://github.com/datafuse-extras/metrics.git", rev = "bc49d03" }
5 changes: 2 additions & 3 deletions src/common/arrow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,15 @@ simd = ["arrow/simd"]
# Workspace dependencies

# Crates.io dependencies

arrow = { package = "arrow2", git = "https://github.com/jorgecarleitao/arrow2", rev = "d06323a", default-features = false, features = [
arrow = { package = "arrow2", git = "https://github.com/jorgecarleitao/arrow2", rev = "9749aee", default-features = false, features = [
"io_parquet",
"io_parquet_compression",
"serde_types",
] }

arrow-format = { version = "0.8.0", features = ["flight-data", "flight-service", "ipc"] }
futures = "0.3.24"
native = { package = "strawboat", git = "https://github.com/sundy-li/strawboat", rev = "d7b3271" }
native = { package = "strawboat", git = "https://github.com/sundy-li/strawboat", rev = "3a9f75c" }
parquet2 = { version = "0.17.0", default_features = false, features = ["serde_types"] }

[dev-dependencies]
4 changes: 2 additions & 2 deletions src/query/expression/src/utils/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@ fn display_decimal_256(num: i256, scale: u8) -> String {
buf,
"{}.{:0>width$}",
num / pow_scale,
num % pow_scale.abs(),
(num % pow_scale).abs(),
width = scale as usize
)
.unwrap();
Expand All @@ -836,7 +836,7 @@ fn display_decimal_256(num: i256, scale: u8) -> String {
buf,
"-{}.{:0>width$}",
-num / pow_scale,
num % pow_scale,
(num % pow_scale).abs(),
width = scale as usize
)
.unwrap();
Expand Down
Loading

1 comment on commit 2404959

@vercel
Copy link

@vercel vercel bot commented on 2404959 Mar 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

databend – ./

databend-databend.vercel.app
databend-git-main-databend.vercel.app
databend.vercel.app
databend.rs

Please sign in to comment.