Github user skonto commented on a diff in the pull request: https://github.com/apache/spark/pull/21930#discussion_r207008732 --- Diff: core/src/main/scala/org/apache/spark/util/ClosureCleaner.scala --- @@ -159,6 +160,43 @@ private[spark] object ClosureCleaner extends Logging { clean(closure, checkSerializable, cleanTransitively, Map.empty) } + /** + * Try to get a serialized Lambda from the closure. + * + * @param closure the closure to check. + */ + private def getSerializedLambda(closure: AnyRef): Option[SerializedLambda] = { + if (scala.util.Properties.versionString.contains("2.11")) { --- End diff -- sure.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org