Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/22995#discussion_r236394496 --- Diff: core/src/main/scala/org/apache/spark/broadcast/TorrentBroadcast.scala --- @@ -93,7 +96,14 @@ private[spark] class TorrentBroadcast[T: ClassTag](obj: T, id: Long) private var checksums: Array[Int] = _ override protected def getValue() = { - _value + val memoized: T = if (_value == null) null.asInstanceOf[T] else _value.get --- End diff -- Hm, weird, I thought it would work based on a little local example, but yeah leave the cast in of course.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org