Skip to content

Commit e2f5d90

Browse files
author
B Vadlamani
committed
support_ansi_mode_rounding_fn
1 parent c7d32b0 commit e2f5d90

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

spark/src/test/scala/org/apache/comet/CometExpressionSuite.scala

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
5656
}
5757

5858
val ARITHMETIC_OVERFLOW_EXCEPTION_MSG =
59-
"""[ARITHMETIC_OVERFLOW] overflow. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error"""
59+
"""org.apache.comet.CometNativeException: [ARITHMETIC_OVERFLOW] integer overflow. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error"""
6060
val DIVIDE_BY_ZERO_EXCEPTION_MSG =
6161
"""Division by zero. Use `try_divide` to tolerate divisor being 0 and return NULL instead"""
6262

@@ -1516,9 +1516,7 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
15161516
128,
15171517
randomSize = 100)
15181518
// this test requires native_comet scan due to unsigned u8/u16 issue
1519-
withSQLConf(
1520-
CometConf.COMET_NATIVE_SCAN_IMPL.key -> CometConf.SCAN_NATIVE_COMET,
1521-
SQLConf.ANSI_ENABLED.key -> "true") {
1519+
withSQLConf(CometConf.COMET_NATIVE_SCAN_IMPL.key -> CometConf.SCAN_NATIVE_COMET) {
15221520
withParquetTable(path.toString, "tbl") {
15231521
for (s <- Seq(-5, -1, 0, 1, 5, -1000, 1000, -323, -308, 308, -15, 15, -16, 16,
15241522
null)) {

0 commit comments

Comments
 (0)