Skip to content

Commit

Permalink
Fix typo in comments in PySpark's udf() definition
Browse files Browse the repository at this point in the history
  • Loading branch information
rednaxelafx authored Jan 4, 2018
1 parent 93f92c0 commit 1d42d86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/sql/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2103,7 +2103,7 @@ def udf(f=None, returnType=StringType()):
>>> import random
>>> random_udf = udf(lambda: int(random.random() * 100), IntegerType()).asNondeterministic()
.. note:: The user-defined functions do not support conditional expressions or short curcuiting
.. note:: The user-defined functions do not support conditional expressions or short circuiting
in boolean expressions and it ends up with being executed all internally. If the functions
can fail on special rows, the workaround is to incorporate the condition into the functions.
Expand Down

0 comments on commit 1d42d86

Please sign in to comment.