SEPURI-SAI-KRISHNA commented on PR #58939:
URL: https://github.com/apache/spark/pull/58939#issuecomment-6906110704

   Thanks @mbravenboer, that makes sense. I added it: for an integral input and 
a scale >= 0, the interpreted path (`RoundBase.nullSafeEval`) now returns the 
input, as `codegenForIntegralType` does, so the two paths agree by construction 
and the interpreted path no longer goes through `BigDecimal` at all in that 
case.
   
   The existing test already ran `checkEvaluation` (which covers both the 
interpreted and the generated code) at scales `10000000`, `1000000000`, 
`Int.MaxValue - 1` and `Int.MaxValue`. I added cases for `Byte`, `Short`, `Int` 
and `Long` inputs at their extremes, for `round`, `bround` (ANSI on and off) 
and `truncate`, at scales `0`, `1`, `10000000` and `Int.MaxValue`.
   


-- 
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