[ https://issues.apache.org/jira/browse/SPARK-3266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14114362#comment-14114362 ]
Josh Rosen commented on SPARK-3266: ----------------------------------- Thanks for the reproduction! I tried it myself and see the same issue. If I replace {code} JavaDoubleRDD javaDoubleRDD = sc.parallelizeDoubles(numbers); {code} with {code} JavaRDDLike<Double, ?> javaDoubleRDD = sc.parallelizeDoubles(numbers); {code} then it seems to work. I'll take a closer look using {{javap}} to see if I can figure out why this is happening. > 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 > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org