Skip to content

Commit 836f0fb

Browse files
committed
Update template comments
1 parent 637a39d commit 836f0fb

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
@@ -92,7 +92,7 @@ class UDFRegistration private[sql] (functionRegistry: FunctionRegistry) extends
9292
def register[$typeTags](name: String, func: Function$x[$types]): UserDefinedFunction = {
9393
val dataType = ScalaReflection.schemaFor[RT].dataType
9494
val inputTypes = Try($inputTypes).toOption
95-
def builder(e: Seq[Expression]) = ScalaUDF(func, dataType, e, inputTypes.getOrElse(Nil))
95+
def builder(e: Seq[Expression]) = ScalaUDF(func, dataType, e, inputTypes.getOrElse(Nil), Some(name))
9696
functionRegistry.registerFunction(name, builder)
9797
UserDefinedFunction(func, dataType, inputTypes)
9898
}""")

0 commit comments

Comments
 (0)