cloud-fan commented on a change in pull request #25186:
[SPARK-28433][SQL]Special scala test case for aarch64
URL: https://github.com/apache/spark/pull/25186#discussion_r305013049
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/DataFrameAggregateSuite.scala
##########
@@ -728,9 +728,15 @@ class DataFrameAggregateSuite extends QueryTest with
SharedSQLContext {
import java.lang.Float.floatToRawIntBits
import java.lang.Double.doubleToRawLongBits
- // 0.0/0.0 and NaN are different values.
- assert(floatToRawIntBits(0.0f/0.0f) != floatToRawIntBits(Float.NaN))
- assert(doubleToRawLongBits(0.0/0.0) != doubleToRawLongBits(Double.NaN))
+ if (System.getProperty("os.arch").contains("aarch64")) {
+ // 0.0/0.0 and NaN are same value on aarch64.
+ assert(floatToRawIntBits(0.0f/0.0f) == floatToRawIntBits(Float.NaN))
Review comment:
We can change it to any value that is NaN but has a different binary
representation than `Float.NaN`.
----------------------------------------------------------------
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]