ueshin commented on code in PR #41321:
URL: https://github.com/apache/spark/pull/41321#discussion_r1213529660


##########
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:
   It shouldn't take `eval_type` here as the same as `df_for_struct` that is 
calculated from the `eval_type` in `worker.py`.



-- 
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]

Reply via email to