Abhinav-Agarwal021 commented on code in PR #13697:
URL: https://github.com/apache/gluten/pull/13697#discussion_r4706507452
##########
gluten-arrow/src/main/java/org/apache/gluten/vectorized/ColumnarBatchOutIterator.java:
##########
@@ -145,6 +146,10 @@ private static RuntimeException
translateToSchemaException(String msg) {
@Override
protected RuntimeException translateException(Exception e) {
+ RuntimeException sparkEx = NativeErrorTranslator.translate(e);
+ if (sparkEx != null) {
+ return sparkEx;
+ }
Review Comment:
Thanks for the trace. Fixed in 9d96a3448d:
`ColumnarBatchOutIterator.translateException` now returns a `SparkThrowable`
runtime exception as-is, before any translation, so the error translated by the
nested iterator is no longer wrapped in `GlutenException`. Added `divide by
zero before a shuffle throws Spark DIVIDE_BY_ZERO error` in
`ArithmeticAnsiValidateSuite`, which runs `SELECT a / b AS c FROM div_tab
DISTRIBUTE BY c` and checks that the top-level exception is
`SparkArithmeticException` on Spark 4.x.
--
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]