Skip to content

Commit 3b5d137

Browse files
committed
In JavaPairDStream, make class tag specification in rightOuterJoin consistent with other functions.
1 parent 31f2956 commit 3b5d137

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

streaming/src/main/scala/org/apache/spark/streaming/api/java/JavaPairDStream.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -625,8 +625,7 @@ class JavaPairDStream[K, V](val dstream: DStream[(K, V)])(
625625
* number of partitions.
626626
*/
627627
def rightOuterJoin[W](other: JavaPairDStream[K, W]): JavaPairDStream[K, (Optional[V], W)] = {
628-
implicit val cm: ClassTag[W] =
629-
implicitly[ClassTag[AnyRef]].asInstanceOf[ClassTag[W]]
628+
implicit val cm: ClassTag[W] = fakeClassTag
630629
val joinResult = dstream.rightOuterJoin(other.dstream)
631630
joinResult.mapValues{case (v, w) => (JavaUtils.optionToOptional(v), w)}
632631
}

0 commit comments

Comments
 (0)