Skip to content

Commit b6d9699

Browse files
committed
Remove missed Tuple2 match in CoGroupedRDD
1 parent a109828 commit b6d9699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/scala/org/apache/spark/rdd/CoGroupedRDD.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ class CoGroupedRDD[K](@transient var rdds: Seq[RDD[_ <: Product2[K, _]]], part:
170170

171171
val createCombiner: (CoGroupValue => CoGroupCombiner) = value => {
172172
val newCombiner = Array.fill(numRdds)(new CoGroup)
173-
value match { case (v, depNum) => newCombiner(depNum) += v }
173+
newCombiner(value._2) += value._1
174174
newCombiner
175175
}
176176
val mergeValue: (CoGroupCombiner, CoGroupValue) => CoGroupCombiner =
177177
(combiner, value) => {
178-
value match { case (v, depNum) => combiner(depNum) += v }
178+
combiner(value._2) += value._1
179179
combiner
180180
}
181181
val mergeCombiners: (CoGroupCombiner, CoGroupCombiner) => CoGroupCombiner =

0 commit comments

Comments
 (0)