jiangjiangtian commented on code in PR #6954:
URL: https://github.com/apache/incubator-gluten/pull/6954#discussion_r1733777222


##########
backends-velox/src/test/scala/org/apache/gluten/execution/MiscOperatorSuite.scala:
##########
@@ -2086,4 +2086,12 @@ class MiscOperatorSuite extends 
VeloxWholeStageTransformerSuite with AdaptiveSpa
     val df2 = runQueryAndCompare("SELECT round(cast(0.19324999999999998 as 
double), 2)") { _ => }
     checkLengthAndPlan(df2, 1)
   }
+
+  test("Fix wrong rescale") {
+    withTable("test") {
+      sql("create table test (col0 decimal(10, 0), col1 decimal(10, 0)) using 
parquet")
+      sql("insert into test values (0, 0)")
+      runQueryAndCompare("select col0 / (col1 + 1E-8) from test") { _ => }

Review Comment:
   Fixed.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to