pyspark.sql.Catalog.registerFunction

Catalog.registerFunction(name: str, f: Callable[[…], Any], returnType: Optional[DataType] = None) → UserDefinedFunctionLike[source]

An alias for spark.udf.register(). See pyspark.sql.UDFRegistration.register().

New in version 2.0.0.

Deprecated since version 2.3.0: Use spark.udf.register() instead.