spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Rosen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-3266) JavaDoubleRDD doesn't contain max()
Date Fri, 29 Aug 2014 05:07:11 GMT

    [ https://issues.apache.org/jira/browse/SPARK-3266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14114870#comment-14114870
] 

Josh Rosen commented on SPARK-3266:
-----------------------------------

[~pwendell] I think the JavaRDDLike trait compiles down to a Java interface (named JavaRDDLike)
and an abstract class named JavaRDDLike$class that contains the implementations of the trait's
members.  After this change, I think JavaRDDLike would compile into a Java abstract base class
with the same name and we wouldn't have a separate interface.

My concern here is that it's going to be a _huge_ pain to find and fix all of the possible
issues that could be caused by this being a trait instead of an abstract base class.  Having
it be a trait was a mistake that we should have caught and fixed earlier.

> JavaDoubleRDD doesn't contain max()
> -----------------------------------
>
>                 Key: SPARK-3266
>                 URL: https://issues.apache.org/jira/browse/SPARK-3266
>             Project: Spark
>          Issue Type: Bug
>          Components: Java API
>    Affects Versions: 1.0.1, 1.0.2, 1.1.0
>            Reporter: Amey Chaugule
>            Assignee: Josh Rosen
>         Attachments: spark-repro-3266.tar.gz
>
>
> While I can compile my code, I see:
> Caused by: java.lang.NoSuchMethodError: org.apache.spark.api.java.JavaDoubleRDD.max(Ljava/util/Comparator;)Ljava/lang/Double;
> When I try to execute my Spark code. Stepping into the JavaDoubleRDD class, I don't notice
max()
> although it is clearly listed in the documentation.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message