Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
loneylee committed Jul 11, 2024
1 parent 71fb50a commit e9c942e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e9c942e

Please sign in to comment.