HyukjinKwon commented on code in PR #41974:
URL: https://github.com/apache/spark/pull/41974#discussion_r1266268190
##########
examples/src/main/python/sql/arrow.py:
##########
@@ -275,6 +275,27 @@ def merge_ordered(left: pd.DataFrame, right: pd.DataFrame)
-> pd.DataFrame:
# +--------+---+---+----+
+def arrow_python_udf_example(spark: SparkSession) -> None:
+ from pyspark.sql.functions import udf
+
+ @udf(returnType='int') # A default, pickled Python UDF
+ def slen(s): # type: ignore[no-untyped-def]
Review Comment:
Why don't you just type it and remove the `ignore`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]