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

    https://github.com/apache/spark/pull/22620#discussion_r222452544
  
    --- Diff: python/pyspark/sql/udf.py ---
    @@ -310,9 +319,11 @@ def register(self, name, f, returnType=None):
                         "Invalid returnType: data type can not be specified 
when f is"
                         "a user-defined function, but got %s." % returnType)
                 if f.evalType not in [PythonEvalType.SQL_BATCHED_UDF,
    -                                  PythonEvalType.SQL_SCALAR_PANDAS_UDF]:
    +                                  PythonEvalType.SQL_SCALAR_PANDAS_UDF,
    +                                  
PythonEvalType.SQL_GROUPED_AGG_PANDAS_UDF]:
    --- End diff --
    
    how about SQL_WINDOW_AGG_PANDAS_UDF?


---

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

Reply via email to