[HOTFIX][SQL] Remove cleaning of UDFs
It is not safe to run the closure cleaner on slaves. #2153 introduced this which broke all UDF execution on slaves. Will re-add cleaning of UDF closures in a follow-up PR. Author: Michael Armbrust <michael@databricks.com> Closes #2174 from marmbrus/fixUdfs and squashes the following commits: 55406de [Michael Armbrust] [HOTFIX] Remove cleaning of UDFs
This commit is contained in:
parent
dafe343499
commit
024178c574
|
@ -23,9 +23,6 @@ import org.apache.spark.util.ClosureCleaner
|
|||
case class ScalaUdf(function: AnyRef, dataType: DataType, children: Seq[Expression])
|
||||
extends Expression {
|
||||
|
||||
// Clean function when not called with default no-arg constructor.
|
||||
if (function != null) { ClosureCleaner.clean(function) }
|
||||
|
||||
type EvaluatedType = Any
|
||||
|
||||
def nullable = true
|
||||
|
|
Loading…
Reference in a new issue