You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2019/11/26 16:27:00 UTC

[jira] [Resolved] (SPARK-30009) Replace Ordering.Double with Ordering.Double.TotalOrdering

     [ https://issues.apache.org/jira/browse/SPARK-30009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dongjoon Hyun resolved SPARK-30009.
-----------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

Issue resolved by pull request 26654
[https://github.com/apache/spark/pull/26654]

> 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
>            Priority: Minor
>             Fix For: 3.0.0
>
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org