zhengruifeng commented on code in PR #53674:
URL: https://github.com/apache/spark/pull/53674#discussion_r2663300906
##########
python/pyspark/sql/tests/pandas/test_pandas_udf_scalar.py:
##########
@@ -2043,6 +2043,63 @@ def plus_two(iterator):
result =
df.select(plus_two("id").alias("result")).collect()
self.assertEqual(expected, result)
+ def test_selective_column_conversion(self):
+ """Test that selective conversion only converts used columns."""
+ # Create DataFrame with 10 columns, but UDF only uses 2
Review Comment:
you may want refer to
https://github.com/apache/spark/blob/d2b49662fa243bd9407f1bfcfa1f14ace4b60a76/sql/core/src/main/scala/org/apache/spark/sql/execution/python/EvalPythonExec.scala#L36-L82
it shows how the result rows are zipped from python workers and scala side
(a row queue)
--
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]