ueshin commented on a change in pull request #24177: [SPARK-27240][PYTHON] Use 
pandas DataFrame for struct type argument in Scalar Pandas UDF.
URL: https://github.com/apache/spark/pull/24177#discussion_r268107190
 
 

 ##########
 File path: python/pyspark/worker.py
 ##########
 @@ -253,7 +253,9 @@ def read_udfs(pickleSer, infile, eval_type):
             
"spark.sql.legacy.execution.pandas.groupedMap.assignColumnsByName", "true")\
             .lower() == "true"
 
-        ser = ArrowStreamPandasUDFSerializer(timezone, safecheck, 
assign_cols_by_name)
+        df_for_struct = eval_type == PythonEvalType.SQL_SCALAR_PANDAS_UDF
 
 Review comment:
   Sure, will add a comment.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to