Skip to content

Commit

Permalink
Fix off by 1 in decimal cast to lower precision
Browse files Browse the repository at this point in the history
Upgrade to arrow-rs bug fix release.
  • Loading branch information
findepi committed Feb 17, 2025
1 parent e4b78c7 commit 71156dd
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 26 deletions.
50 changes: 25 additions & 25 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 @@ -78,7 +78,7 @@ version = "45.0.0"
ahash = { version = "0.8", default-features = false, features = [
"runtime-rng",
] }
arrow = { version = "54.1.0", features = [
arrow = { version = "54.2.0", features = [
"prettyprint",
"chrono-tz",
] }
Expand Down
7 changes: 7 additions & 0 deletions datafusion/sqllogictest/test_files/decimal.slt
Original file line number Diff line number Diff line change
Expand Up @@ -740,3 +740,10 @@ query R
SELECT CAST('0' AS decimal(38,0));
----
0

query RR
SELECT
cast(cast('0' as decimal(3,0)) as decimal(2,0)),
cast(cast('5.20' as decimal(4,2)) as decimal(3,2))
----
0 5.2

0 comments on commit 71156dd

Please sign in to comment.