Optional return type of the UDF. If undefined, the server will determine the type.
Returns Promise<void>
Promise
Example
spark.udf.registerJava("javaUdf", "com.example.MyUDF", DataTypes.IntegerType); // Or let server decide the return type: spark.udf.registerJava("javaUdf", "com.example.MyUDF");
Functions for registering user-defined functions. Use
SparkSession.udfto access this.Since
1.0.0