You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean R. Owen (Jira)" <ji...@apache.org> on 2019/11/24 22:00:05 UTC
[jira] [Created] (SPARK-30009) Replace Ordering.Double with
Ordering.Double.TotalOrdering
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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org