Skip to content

Commit 3d2afef

Browse files
robinskeRobert Kruszewski
authored andcommitted
[SPARK-24262][PYTHON] Fix typo in UDF type match error message
## What changes were proposed in this pull request? Updates `functon` to `function`. This was called out in holdenk's PyCon 2018 conference talk. Didn't see any existing PR's for this. holdenk happy to fix the Pandas.Series bug too but will need a bit more guidance. Author: Kelley Robinson <[email protected]> Closes apache#21304 from robinske/master.
1 parent 846af73 commit 3d2afef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/pyspark/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def wrap_scalar_pandas_udf(f, return_type):
8282
def verify_result_length(*a):
8383
result = f(*a)
8484
if not hasattr(result, "__len__"):
85-
raise TypeError("Return type of the user-defined functon should be "
85+
raise TypeError("Return type of the user-defined function should be "
8686
"Pandas.Series, but is {}".format(type(result)))
8787
if len(result) != len(a[0]):
8888
raise RuntimeError("Result vector from pandas_udf was not the required length: "

0 commit comments

Comments
 (0)