Skip to content

Commit

Permalink
Revert "add test"
Browse files Browse the repository at this point in the history
This reverts commit 1eb985e.
  • Loading branch information
planga82 committed Jul 6, 2024
1 parent 4539246 commit 1b05af5
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions spark/src/test/scala/org/apache/comet/CometExpressionSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -735,18 +735,6 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
}
}

test("add overflow ansi mode decimal") {
val value = BigDecimal("9" * 20 + "." + "9" * 18)
// TODO comet return null, control it and return the correct exception
val query = "select _1 + _2 from tbl"
withSQLConf(
SQLConf.ANSI_ENABLED.key -> "true",
CometConf.COMET_ANSI_MODE_ENABLED.key -> "true",
"spark.sql.decimalOperations.allowPrecisionLoss" -> "false") {
testAnsiOverflow(Seq((value, value)), query)
}
}

test("divide by zero (ANSI disable)") {
// Enabling ANSI will cause native engine failure, but as we cannot catch
// native error now, we cannot test it here.
Expand Down

0 comments on commit 1b05af5

Please sign in to comment.