Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/20137#discussion_r159577391
  
    --- Diff: python/pyspark/sql/catalog.py ---
    @@ -227,15 +227,15 @@ def dropGlobalTempView(self, viewName):
         @ignore_unicode_prefix
         @since(2.0)
         def registerFunction(self, name, f, returnType=StringType()):
    -        """Registers a python function (including lambda function) as a UDF
    +        """Registers a Python function (including lambda function) or a 
wrapped/native UDF
    --- End diff --
    
    I'm really confusing when reading this document, it would be much more 
clear to me if we can just say
    ```
    Registers a Python function (including lambda function) or a 
:class:`UserDefinedFunction`
    ```
    This wrapping logic was added in https://github.com/apache/spark/pull/16534 
, is it really worth?


---

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

Reply via email to