You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "allisonwang-db (via GitHub)" <gi...@apache.org> on 2023/06/15 17:28:07 UTC
[GitHub] [spark] allisonwang-db commented on a diff in pull request #41563: [SPARK-43798][PYTHON][FOLLOW-UP] Sets the batch size as 1 to send individual group
allisonwang-db commented on code in PR #41563:
URL: https://github.com/apache/spark/pull/41563#discussion_r1231340979
##########
python/pyspark/worker.py:
##########
@@ -531,9 +528,10 @@ def func(_, it):
f"the 'terminate' method: {str(e)}"
)
- ser = BatchedSerializer(CPickleSerializer(), 100)
+ # Each row is a group so do not batch but send one by one.
Review Comment:
Thanks for catching this. Just curious, if a UDTF only yields a small number of rows (< 5) for each input row, would setting the batch size to be 1 impact the performance?
##########
python/pyspark/worker.py:
##########
@@ -531,9 +528,10 @@ def func(_, it):
f"the 'terminate' method: {str(e)}"
)
- ser = BatchedSerializer(CPickleSerializer(), 100)
+ # Each row is a group so do not batch but send one by one.
Review Comment:
@HyukjinKwon Thanks for catching this. Just curious, if a UDTF only yields a small number of rows (< 5) for each input row, would setting the batch size to be 1 impact the performance?
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org