srowen commented on issue #26654: [SPARK-30009][CORE][SQL] Support different 
floating-point Ordering for Scala 2.12 / 2.13
URL: https://github.com/apache/spark/pull/26654#issuecomment-559475762
 
 
   @maropu yep that's good, I don't expect that changes. What about the 
equivalent of `SELECT Infinity < Nan`? that kind of case is the worry, if 
anything. But this seems to work consistently:
   
   ```
   val df = spark.createDataFrame(Seq(Double.MinValue, Double.MaxValue, 
Double.NaN).map(Tuple1(_)))
   df.select($"_1" < Double.NaN).show()
   
   +----------+
   |(_1 < NaN)|
   +----------+
   |      true|
   |      true|
   |     false|
   +----------+
   ```

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