Sean R. Owen created SPARK-30009:
------------------------------------

             Summary: Replace Ordering.Double with Ordering.Double.TotalOrdering
                 Key: SPARK-30009
                 URL: https://issues.apache.org/jira/browse/SPARK-30009
             Project: Spark
          Issue Type: Sub-task
          Components: Spark Core, SQL
    Affects Versions: 3.0.0
            Reporter: Sean R. Owen
            Assignee: Sean R. Owen


Scala 2.12 replaces {{Ordering.Double}} with either of 
{{Ordering.Double.TotalOrdering}} (same behavior, NaN compares consistently) or 
{{Ordering.Double.IeeeOrdering}} (consistent with java.lang.Double.compare, NaN 
always compares false, for example). Neither is available in both versions, and 
it doesn't seem like a compat library exists to handle this.

This can be accomplished by inlining the implementation of {{Ordering.Double}} 
so that both can use it. Or, parallel source trees for 2.12 / 2.13. The latter 
wouldn't be worth it just for this, but I'm fairly sure a few things will 
require it anyway.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to