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

    https://github.com/apache/spark/pull/20217#discussion_r160873927
  
    --- Diff: python/pyspark/sql/context.py ---
    @@ -578,6 +606,9 @@ def __init__(self, sqlContext):
         def register(self, name, f, returnType=StringType()):
             return self.sqlContext.registerFunction(name, f, returnType)
     
    +    def registerUDF(self, name, f):
    --- End diff --
    
    Maybe we can add doc here by `registerUDF.__doc__ == 
SQLContext.registerUDF.__doc__` similar to doc for `register`.
    (We should do it for `registerJavaFunction` and `registerJavaUDAF`, too?)


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to