Skip to content

Commit 610a595

Browse files
committed
remove log
1 parent fcd665e commit 610a595

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • sql/catalyst/src/main/scala/org/apache/spark/sql/types

sql/catalyst/src/main/scala/org/apache/spark/sql/types/Decimal.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,11 @@ final class Decimal extends Ordered[Decimal] with Serializable with Logging {
250250
if (copy.changePrecision(precision, scale, roundMode)) {
251251
copy
252252
} else {
253-
def message = s"$toDebugString cannot be represented as Decimal($precision, $scale)."
254253
if (nullOnOverflow) {
255-
if (log.isDebugEnabled) logDebug(s"$message NULL is returned.")
256254
null
257255
} else {
258-
throw new ArithmeticException(message)
256+
throw new ArithmeticException(
257+
s"$toDebugString cannot be represented as Decimal($precision, $scale).")
259258
}
260259
}
261260
}

0 commit comments

Comments
 (0)