pyspark.sql.Catalog.registerFunction¶
-
Catalog.
registerFunction
(name: str, f: Callable[[…], Any], returnType: Optional[DataType] = None) → UserDefinedFunctionLike[source]¶ An alias for
spark.udf.register()
. Seepyspark.sql.UDFRegistration.register()
.New in version 2.0.0.
Deprecated since version 2.3.0: Use
spark.udf.register()
instead.Changed in version 3.4.0: Supports Spark Connect.