Github user marmbrus commented on a diff in the pull request:
    --- Diff: python/pyspark/sql/ ---
    @@ -202,6 +202,32 @@ def registerFunction(self, name, f, 
             self.sparkSession.catalog.registerFunction(name, f, returnType)
    +    @ignore_unicode_prefix
    +    @since(2.1)
    +    def registerJavaFunction(self, name, javaClassName, returnType=None):
    +        """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 would infer the returnType 
via reflection.
    --- End diff --
    nit: its a little odd to mix `return type` with `returnType`.  Perhaps, 
"When the return type is not specified we attempt to infer it using reflection"

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to