diff options
author | Reynold Xin <rxin@databricks.com> | 2015-12-21 14:07:48 -0800 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2015-12-21 14:07:48 -0800 |
commit | a820ca19de1fb4daa01939a4b8bde8d874a7f3fc (patch) | |
tree | 29d6f28b3d72a63fd9c4fd42ab3673c2ea9ed04a /core/src/main | |
parent | b0849b8aeafa801bb0561f1f6e46dc1d56c37c19 (diff) | |
download | spark-a820ca19de1fb4daa01939a4b8bde8d874a7f3fc.tar.gz spark-a820ca19de1fb4daa01939a4b8bde8d874a7f3fc.tar.bz2 spark-a820ca19de1fb4daa01939a4b8bde8d874a7f3fc.zip |
[SPARK-2331] SparkContext.emptyRDD should return RDD[T] not EmptyRDD[T]
Author: Reynold Xin <rxin@databricks.com>
Closes #10394 from rxin/SPARK-2331.
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/scala/org/apache/spark/SparkContext.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/SparkContext.scala b/core/src/main/scala/org/apache/spark/SparkContext.scala index 81a4d0a4d6..c4541aa376 100644 --- a/core/src/main/scala/org/apache/spark/SparkContext.scala +++ b/core/src/main/scala/org/apache/spark/SparkContext.scala @@ -1248,7 +1248,7 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli } /** Get an RDD that has no partitions or elements. */ - def emptyRDD[T: ClassTag]: EmptyRDD[T] = new EmptyRDD[T](this) + def emptyRDD[T: ClassTag]: RDD[T] = new EmptyRDD[T](this) // Methods for creating shared variables |