Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/20137#discussion_r159579886
--- 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 --
BTW, to be honest, I remember I gave several quick tries to get rid of the
wrapper but keep the docstring correctly at that time but I failed to make a
good alternative.
Might be good to try if there is a claver way to get rid of the wrapper but
keep the doc.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]