Skip to content

Commit 04dc656

Browse files
authored
Fix off by 1 in decimal cast to lower precision (apache#14731)
Upgrade to arrow-rs bug fix release.
1 parent 6dfbdba commit 04dc656

File tree

3 files changed

+33
-26
lines changed

3 files changed

+33
-26
lines changed

Cargo.lock

+25-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ version = "45.0.0"
7878
ahash = { version = "0.8", default-features = false, features = [
7979
"runtime-rng",
8080
] }
81-
arrow = { version = "54.1.0", features = [
81+
arrow = { version = "54.2.0", features = [
8282
"prettyprint",
8383
"chrono-tz",
8484
] }

datafusion/sqllogictest/test_files/decimal.slt

+7
Original file line numberDiff line numberDiff line change
@@ -740,3 +740,10 @@ query R
740740
SELECT CAST('0' AS decimal(38,0));
741741
----
742742
0
743+
744+
query RR
745+
SELECT
746+
cast(cast('0' as decimal(3,0)) as decimal(2,0)),
747+
cast(cast('5.20' as decimal(4,2)) as decimal(3,2))
748+
----
749+
0 5.2

0 commit comments

Comments
 (0)