diff --git a/spark/src/main/spark-3.3/org/apache/comet/shims/CometExprShim.scala b/spark/src/main/spark-3.3/org/apache/comet/shims/CometExprShim.scala index a9316593c..48dabf662 100644 --- a/spark/src/main/spark-3.3/org/apache/comet/shims/CometExprShim.scala +++ b/spark/src/main/spark-3.3/org/apache/comet/shims/CometExprShim.scala @@ -55,10 +55,10 @@ trait CometExprShim { CometEvalMode.fromBoolean(expr.failOnError) def evalMode(expr: Sum): CometEvalMode.Value = - CometEvalMode.fromBoolean(expr.failOnError) + CometEvalMode.fromBoolean(expr.useAnsiAdd) def evalMode(expr: Average): CometEvalMode.Value = - CometEvalMode.fromBoolean(expr.failOnError) + CometEvalMode.fromBoolean(expr.useAnsiAdd) def evalMode(c: Cast): CometEvalMode.Value = CometEvalMode.fromBoolean(c.ansiEnabled)