cloud-fan commented on code in PR #39546:
URL: https://github.com/apache/spark/pull/39546#discussion_r1068926253


##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/mathExpressions.scala:
##########
@@ -1584,9 +1600,17 @@ abstract class RoundBase(child: Expression, scale: 
Expression,
         }
       case IntegerType =>
         if (_scale < 0) {
-          s"""
-          ${ev.value} = new java.math.BigDecimal(${ce.value}).
+          if (ansiEnabled) {
+            val errorContext = getContextOrNullCode(ctx)
+            val evalCode = s"""

Review Comment:
   can we use the standard scala multiple syntax that are also used in other 
places of the spark codebase?
   ```
   """
     |xxx
     |xxx""".stripMaigin
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to