docs/sql-ref-functions-udf-scalar.md
User-Defined Functions (UDFs) are user-programmable routines that act on one row. This documentation lists the classes that are required for creating and registering UDFs. It also contains examples that demonstrate how to define and register UDFs and invoke them in Spark SQL.
To define the properties of a user-defined function, the user can use some of the methods defined in this class.
asNonNullable(): UserDefinedFunction
Updates UserDefinedFunction to non-nullable.
asNondeterministic(): UserDefinedFunction
Updates UserDefinedFunction to nondeterministic.
withName(name: String): UserDefinedFunction
Updates UserDefinedFunction with a given name.