Skip to content

Commit 940245e

Browse files
author
Davies Liu
committed
address comments
1 parent ff5a0a6 commit 940245e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/SparkContext.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
972972

973973
/** Build the union of a list of RDDs passed as variable-length arguments. */
974974
def union[T: ClassTag](first: RDD[T], rest: RDD[T]*): RDD[T] =
975-
new UnionRDD(this, Seq(first) ++ rest)
975+
union(Seq(first) ++ rest)
976976

977977
/** Get an RDD that has no partitions or elements. */
978978
def emptyRDD[T: ClassTag] = new EmptyRDD[T](this)

0 commit comments

Comments
 (0)