Skip to content

Commit 5570f75

Browse files
authored
Add test for decimal256 and float math (apache#17530)
1 parent 20f1640 commit 5570f75

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

datafusion/sqllogictest/test_files/decimal.slt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,3 +775,11 @@ SELECT
775775
arrow_cast(1.23,'Decimal128(3,2)') / arrow_cast(123, 'Int64') as divison_int
776776
----
777777
0.01 0.01
778+
779+
query TR
780+
with tt as (
781+
select arrow_cast(133333333333333333333333333333333333333333333.34, 'Decimal256(50, 2)') as v1
782+
) select arrow_typeof(v1 + 1.5), v1 + 1.5 from tt;
783+
----
784+
Float64 133333333333333330000000000000000000000000000
785+

0 commit comments

Comments
 (0)