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
Describe the bug
Integration test failures on Spark 3.2.1
12:05:10 FAILED ../../src/main/python/arithmetic_ops_test.py::test_mod_pmod_by_zero[pmod(cast(-12 as {}), cast(0 as {}))-Decimal(7,7)]
12:05:10 FAILED ../../src/main/python/arithmetic_ops_test.py::test_mod_pmod_by_zero[cast(-12 as {}) % cast(0 as {})-Decimal(7,7)]
The reason of this bug is that in Spark 3.2 cannotChangeDecimalPrecisionError throws java.lang.ArithmeticException but not SparkArithmeticException:
java.lang.ArithmeticException:Decimal(expanded,-12,2,0}) cannot be represented as Decimal(7, 7).
at org.apache.spark.sql.errors.QueryExecutionErrors$.cannotChangeDecimalPrecisionError(QueryExecutionErrors.scala:97)
Describe the bug
Integration test failures on Spark 3.2.1
12:05:10 FAILED ../../src/main/python/arithmetic_ops_test.py::test_mod_pmod_by_zero[pmod(cast(-12 as {}), cast(0 as {}))-Decimal(7,7)]
12:05:10 FAILED ../../src/main/python/arithmetic_ops_test.py::test_mod_pmod_by_zero[cast(-12 as {}) % cast(0 as {})-Decimal(7,7)]
This might be the ArtithmeticException mismatch.
Possibly caused by #5354
The text was updated successfully, but these errors were encountered: