Github user marmbrus commented on a diff in the pull request:

    https://github.com/apache/spark/pull/9766#discussion_r82876419
  
    --- Diff: python/pyspark/sql/context.py ---
    @@ -202,6 +202,26 @@ def registerFunction(self, name, f, 
returnType=StringType()):
             """
             self.sparkSession.catalog.registerFunction(name, f, returnType)
     
    +    @ignore_unicode_prefix
    +    @since(2.1)
    +    def registerJavaFunction(self, name, javaClassName, 
returnType=StringType()):
    +        """Register a java UDF so it can be used in SQL statements.
    +
    +        In addition to a name and the function itself, the return type can 
be optionally specified.
    +        When the return type is not given it default to a string and 
conversion will automatically
    --- End diff --
    
    Where does this conversion happen?  Are we sure that it works (given there 
are no tests that I see).


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to