Github user HyukjinKwon commented on a diff in the pull request: https://github.com/apache/spark/pull/20307#discussion_r162308708 --- Diff: python/pyspark/sql/functions.py --- @@ -2108,7 +2108,8 @@ def udf(f=None, returnType=StringType()): can fail on special rows, the workaround is to incorporate the condition into the functions. :param f: python function if used as a standalone function - :param returnType: a :class:`pyspark.sql.types.DataType` object + :param returnType: the return type of the registered user-defined function. The value can be --- End diff -- Seems typo: `the return type of the registered user-defined function.` -> `the return type of the user-defined function.`?
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org