case classUnsafeUnaryUdfExpression(child: Expression, udf: (Any) ⇒ Any, tgtDataType: DataType) extends UnaryExpression with Product with Serializable
With Spark 3.0 the API for Udf's was made more typesafe. It's no longer possible to create a Udf and give it's return type as StructType.
This implements an explicitly unsafe unary udf, which takes a function with signature Any -> Any as transformation.
UnsafeUnaryUdfExpression is the Udf expression that is embedded and executed in Spark logical plan.
Use UnsafeUnaryUdf to create the udf function to be used in Spark DataFrame API.
Linear Supertypes
Serializable, Serializable, UnaryExpression, Expression, TreeNode[Expression], Product, Equals, AnyRef, Any
With Spark 3.0 the API for Udf's was made more typesafe. It's no longer possible to create a Udf and give it's return type as StructType. This implements an explicitly unsafe unary udf, which takes a function with signature Any -> Any as transformation. UnsafeUnaryUdfExpression is the Udf expression that is embedded and executed in Spark logical plan. Use UnsafeUnaryUdf to create the udf function to be used in Spark DataFrame API.