You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datafusion.apache.org by je...@apache.org on 2025/09/12 23:20:24 UTC

(datafusion) branch main updated: Add test for decimal256 and float math (#17530)

This is an automated email from the ASF dual-hosted git repository.

jeffreyvo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/datafusion.git


The following commit(s) were added to refs/heads/main by this push:
     new 5570f75683 Add test for decimal256 and float math (#17530)
5570f75683 is described below

commit 5570f75683c595d9261cb16993856918decf0bfc
Author: Jeffrey Vo <je...@gmail.com>
AuthorDate: Sat Sep 13 09:20:19 2025 +1000

    Add test for decimal256 and float math (#17530)
---
 datafusion/sqllogictest/test_files/decimal.slt | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/datafusion/sqllogictest/test_files/decimal.slt b/datafusion/sqllogictest/test_files/decimal.slt
index 2c91e82041..bd19991ec3 100644
--- a/datafusion/sqllogictest/test_files/decimal.slt
+++ b/datafusion/sqllogictest/test_files/decimal.slt
@@ -775,3 +775,11 @@ SELECT
     arrow_cast(1.23,'Decimal128(3,2)') /  arrow_cast(123, 'Int64') as divison_int
 ----
 0.01 0.01
+
+query TR
+with tt as (
+    select arrow_cast(133333333333333333333333333333333333333333333.34, 'Decimal256(50, 2)') as v1
+) select arrow_typeof(v1 + 1.5), v1 + 1.5 from tt;
+----
+Float64 133333333333333330000000000000000000000000000
+


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org