Skip to content

Commit 3ebf487

Browse files
committed
SPARK-11716 - Update the script used to generate register() functions
1 parent a609d12 commit 3ebf487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/core/src/main/scala/org/apache/spark/sql/UDFRegistration.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class UDFRegistration private[sql] (sqlContext: SQLContext) extends Logging {
8888
val inputTypes = Try($inputTypes).getOrElse(Nil)
8989
def builder(e: Seq[Expression]) = ScalaUDF(func, dataType, e, inputTypes)
9090
functionRegistry.registerFunction(name, builder)
91-
UserDefinedFunction(func, dataType)
91+
UserDefinedFunction(func, dataType, inputTypes)
9292
}""")
9393
}
9494

0 commit comments

Comments
 (0)