-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Describe the bug
Spark
scala> spark.sql("select cast(0.06+0.01 as decimal(18,2))").show
+------------------------------------+
|CAST((0.06 + 0.01) AS DECIMAL(18,2))|
+------------------------------------+
| 0.07|
+------------------------------------+
DataFusion
❯ select cast(0.06+0.01 as decimal(18,2));
+-------------------------------+
| Float64(0.06) + Float64(0.01) |
+-------------------------------+
| 0.06 |
+-------------------------------+
To Reproduce
See above
Expected behavior
Additional context
Discovered as part of #4024
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working