srowen opened a new pull request #25279: [WIP][SPARK-28519][SQL] Use StrictMath 
log, pow functions for platform independence
URL: https://github.com/apache/spark/pull/25279
 
 
   ## What changes were proposed in this pull request?
   
   See discussion on the JIRA (and dev@). At heart, we find that math.log and 
math.pow can actually return slightly different results across platforms 
because of hardware optimizations. For the actual SQL log and pow functions, I 
propose that we should use StrictMath instead to ensure the answers are already 
the same. (This should have the benefit of helping tests pass on aarch64.)
   
   Further, the atanh function (which is not part of java.lang.Math) can be 
implemented in a slightly different and more accurate way.
   
   ## How was this patch tested?
   
   Existing tests (which will need to be changed).
   Some manual testing locally to understand the numeric issues.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to