Skip to content

Commit

Permalink
test arrow2 decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
TCeason committed Mar 2, 2023
1 parent 2c35b87 commit 28a85a6
Show file tree
Hide file tree
Showing 4 changed files with 341 additions and 9 deletions.
5 changes: 5 additions & 0 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" }
2 changes: 1 addition & 1 deletion src/query/expression/src/utils/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 28a85a6

Please sign in to comment.