Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.0.0
-
None
Description
The return type for SparkContext.emptyRDD is EmptyRDD[T].
It should be RDD[T]. That means you have to add extra type annotations on code like the below (which creates a union of RDDs over some subset of paths in a folder)
val rdds = Seq("a", "b", "c").foldLeft[RDD[String]](sc.emptyRDD[String]) { (rdd, path) ⇒ rdd.union(sc.textFile(path)) }
Attachments
Issue Links
- links to