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
{{ message }}
Repository navigation
Comet should not translate try_sum to native sum expression #276
One more test failure found while working in #250.
SQLQuerySuite:
[info] - SPARK-38548: try_sum should return null if overflow happens before merging *** FAILED *** (179 milliseconds)
[info] org.apache.spark.SparkException: Job aborted due to stage failure: Task 1 in stage 2306.0 failed 1 times, most recent failure: Lost task 1.0 in stage 2306.0 (TID 2699) (b8cdd0fa496d executor driver): java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
[info] at org.apache.spark.sql.vectorized.ColumnarBatchRow.getBoolean(ColumnarBatchRow.java:97)
It is because the query uses try_sum expression. Currently Comet ignores evalMode parameter for sum and average. Because they might have different aggregation buffer or behavior, we should not simply translate try_sum to sum.
Activity