diff --git a/shims/spark32/src/main/scala/org/apache/gluten/sql/shims/spark32/Spark32Shims.scala b/shims/spark32/src/main/scala/org/apache/gluten/sql/shims/spark32/Spark32Shims.scala index 1d75fda128316..5ad63884af38b 100644 --- a/shims/spark32/src/main/scala/org/apache/gluten/sql/shims/spark32/Spark32Shims.scala +++ b/shims/spark32/src/main/scala/org/apache/gluten/sql/shims/spark32/Spark32Shims.scala @@ -277,7 +277,9 @@ class Spark32Shims extends SparkShims { ) } - override def genDecimalRoundExpressionOutput(decimalType: DecimalType, toScale: Int): DecimalType = { + override def genDecimalRoundExpressionOutput( + decimalType: DecimalType, + toScale: Int): DecimalType = { val p = decimalType.precision val s = decimalType.scale DecimalType(p, if (toScale > s) s else toScale)