rui-mo commented on code in PR #6954:
URL: https://github.com/apache/incubator-gluten/pull/6954#discussion_r1732474565
##########
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:
There is a test failure as below:
```
Fix wrong rescale *** FAILED ***
org.apache.spark.sql.AnalysisException: unknown requires that the data to
be inserted have the same number of columns as the target table: target table
has 3 column(s) but the inserted data has 2 column(s), including 0 partition
column(s) having constant value(s).
```
--
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]