org.apache.spark.sql.custom
Register a udf to be available in evaluating expressions.
Note: this code is copied from Spark UDFRegistration.register