SparkSession.
udf
Returns a UDFRegistration for UDF registration.
UDFRegistration
New in version 2.0.0.