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

    https://github.com/apache/spark/pull/19325#discussion_r140626051
  
    --- Diff: python/pyspark/worker.py ---
    @@ -80,14 +77,12 @@ def wrap_pandas_udf(f, return_type):
         arrow_return_type = toArrowType(return_type)
     
         def verify_result_length(*a):
    -        kwargs = a[-1]
    -        result = f(*a[:-1], **kwargs)
    -        if len(result) != kwargs["length"]:
    +        result = f(*a)
    +        if len(result) != len(a[0]):
    --- End diff --
    
    Should we verify the returned is a Pandas.Series?


---

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

Reply via email to