GitHub user ueshin opened a pull request: https://github.com/apache/spark/pull/20307
[SPARK-23141][SQL][PYSPARK] Support data type string as a returnType for registerJavaFunction. ## What changes were proposed in this pull request? Currently `UDFRegistration.registerJavaFunction` doesn't support data type string as a `returnType` whereas `UDFRegistration.register`, `@udf`, or `@pandas_udf` does. We can support it for `UDFRegistration.registerJavaFunction` as well. ## How was this patch tested? Added a doctest and existing tests. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ueshin/apache-spark issues/SPARK-23141 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/20307.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #20307 ---- commit 1a2c01d84315e8937f0683680dd81dec5a4a3a6f Author: Takuya UESHIN <ueshin@...> Date: 2018-01-18T06:04:30Z Support data type string as a returnType for registerJavaFunction. ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org