Skip to content

Commit

Permalink
test arrow2 decimal256
Browse files Browse the repository at this point in the history
  • Loading branch information
TCeason committed Mar 2, 2023
1 parent 6b1efac commit 546229a
Show file tree
Hide file tree
Showing 5 changed files with 341 additions and 14 deletions.
4 changes: 2 additions & 2 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 = "615300b" }
arrow2 = { git = "https://github.com/TCeason/arrow2", branch = "ISSUE-1411" }
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" }
4 changes: 2 additions & 2 deletions src/common/arrow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ simd = ["arrow/simd"]
# Workspace dependencies

# Crates.io dependencies
arrow = { package = "arrow2", git = "https://github.com/jorgecarleitao/arrow2", rev = "615300b", default-features = false, features = [
arrow = { package = "arrow2", git = "https://github.com/TCeason/arrow2", branch = "ISSUE-1411", 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 = "dfbe357" }
native = { package = "strawboat", git = "https://github.com/TCeason/strawboat", rev = "c4d94e8" }
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 @@ -814,7 +814,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 @@ -823,7 +823,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

0 comments on commit 546229a

Please sign in to comment.