Skip to content

Commit 2ea071a

Browse files
committed
Fix comments that are used to print out the register functions
1 parent 3dea44f commit 2ea071a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,10 @@ class UDFRegistration private[sql] (functionRegistry: FunctionRegistry) extends
109109
| * @since 1.3.0
110110
| */
111111
|def register(name: String, f: UDF$i[$extTypeArgs, _], returnType: DataType): Unit = {
112+
| val func = f$anyCast.call($anyParams)
112113
| functionRegistry.registerFunction(
113114
| name,
114-
| (e: Seq[Expression]) => ScalaUDF(f$anyCast.call($anyParams), returnType, e))
115+
| (e: Seq[Expression]) => ScalaUDF(func, returnType, e))
115116
|}""".stripMargin)
116117
}
117118
*/

0 commit comments

Comments
 (0)