pyspark.sql.Catalog.registerFunction

Catalog.registerFunction(name, f, returnType=None)[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.