xinrong-meng commented on code in PR #41321:
URL: https://github.com/apache/spark/pull/41321#discussion_r1213770380
##########
python/pyspark/sql/pandas/serializers.py:
##########
@@ -298,26 +299,39 @@ class
ArrowStreamPandasUDFSerializer(ArrowStreamPandasSerializer):
Serializer used by Python worker to evaluate Pandas UDFs
"""
- def __init__(self, timezone, safecheck, assign_cols_by_name,
df_for_struct=False):
+ def __init__(
+ self,
+ timezone,
+ safecheck,
+ assign_cols_by_name,
+ df_for_struct=False,
+ eval_type=PythonEvalType.SQL_SCALAR_PANDAS_UDF,
Review Comment:
Docstrings on how `df_for_struct` and `struct_in_pandas` is set according to
eval_types, as well as user-facing documentation on struct type behaviors would
be helpful. I may work on it as a follow-up.
--
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]