You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql("create table t1(c1 long, c2 short) using parquet")
121
121
sql(s"insert into t1 values($value, -1)")
@@ -409,7 +409,7 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
409
409
checkSparkMaybeThrows(res) match {
410
410
case (Some(sparkExc), Some(cometExc)) =>
411
411
valcometErrorPattern=
412
-
"""org.apache.comet.CometNativeException: [ARITHMETIC_OVERFLOW] Integer/Float overflow. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error"""
412
+
"""org.apache.spark.SparkArithmeticException: [ARITHMETIC_OVERFLOW] integer overflow. Use 'try_add' to tolerate overflow and return NULL instead. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error"""
@@ -427,11 +427,10 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
427
427
| _1 - _2
428
428
| from tbl
429
429
| """.stripMargin)
430
-
431
430
checkSparkMaybeThrows(res) match {
432
431
case (Some(sparkExc), Some(cometExc)) =>
433
432
valcometErrorPattern=
434
-
"""org.apache.comet.CometNativeException: [ARITHMETIC_OVERFLOW] Integer/Float overflow. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error"""
433
+
"""org.apache.spark.SparkArithmeticException: [ARITHMETIC_OVERFLOW] integer overflow. Use 'try_subtract' to tolerate overflow and return NULL instead. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error."""
@@ -453,7 +452,7 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
453
452
checkSparkMaybeThrows(res) match {
454
453
case (Some(sparkExc), Some(cometExc)) =>
455
454
valcometErrorPattern=
456
-
"""org.apache.comet.CometNativeException: [ARITHMETIC_OVERFLOW] Integer/Float overflow. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error"""
455
+
"""org.apache.spark.SparkArithmeticException: [ARITHMETIC_OVERFLOW] integer overflow. Use 'try_multiply' to tolerate overflow and return NULL instead. If necessary set "spark.sql.ansi.enabled" to "false" to bypass this error"""
@@ -476,7 +475,7 @@ class CometExpressionSuite extends CometTestBase with AdaptiveSparkPlanHelper {
476
475
checkSparkMaybeThrows(res) match {
477
476
case (Some(sparkExc), Some(cometExc)) =>
478
477
valcometErrorPattern=
479
-
"""org.apache.comet.CometNativeException: [DIVIDE_BY_ZERO] Division by zero. Use `try_divide` to tolerate divisor being 0 and return NULL instead"""
478
+
"""org.apache.spark.SparkArithmeticException: [DIVIDE_BY_ZERO] Division by zero. Use `try_divide` to tolerate divisor being 0 and return NULL instead"""
0 commit comments