Skip to content


UserDefinedPythonFunction represents a user-defined Python function.

Creating Instance

UserDefinedPythonFunction takes the following to be created:

  • Name
  • PythonFunction
  • DataType
  • Eval Type
  • udfDeterministic flag

UserDefinedPythonFunction is created when:

Creating Column (to Execute PythonUDF)

  exprs: Column*): Column

apply creates a Column with the PythonUDF for the given Column expressions.

Creating PythonUDF

  e: Seq[Expression]): Expression

builder creates a PythonUDF expression (for the given Expressions).

builder is used when: