HyukjinKwon commented on a change in pull request #34505:
URL: https://github.com/apache/spark/pull/34505#discussion_r747936240
##########
File path: python/pyspark/sql/udf.py
##########
@@ -405,12 +409,10 @@ def register(
PythonEvalType.SQL_SCALAR_PANDAS_UDF,
PythonEvalType.SQL_SCALAR_PANDAS_ITER_UDF,
PythonEvalType.SQL_GROUPED_AGG_PANDAS_UDF,
- PythonEvalType.SQL_MAP_PANDAS_ITER_UDF,
]:
raise ValueError(
"Invalid f: f must be SQL_BATCHED_UDF,
SQL_SCALAR_PANDAS_UDF, "
- "SQL_SCALAR_PANDAS_ITER_UDF, SQL_GROUPED_AGG_PANDAS_UDF or
"
- "SQL_MAP_PANDAS_ITER_UDF."
Review comment:
Oh I had to clarify this. Yeah `SQL_MAP_PANDAS_ITER_UDF` is only used
for `DataFrame.mapInPandas` which cannot be registered as a UDF. I will clarify
this in Pr description.
--
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]