viirya commented on a change in pull request #25515: [SPARK-27659][PYTHON]
Allow PySpark to prefetch during toLocalItr
URL: https://github.com/apache/spark/pull/25515#discussion_r315932315
##########
File path: python/pyspark/sql/dataframe.py
##########
@@ -520,11 +520,14 @@ def collect(self):
@ignore_unicode_prefix
@since(2.0)
- def toLocalIterator(self):
+ def toLocalIterator(self, prefetchPartitions=False):
Review comment:
looks like you miss to pass prefetchPartitions to
self._jdf.toPythonIterator() below?
----------------------------------------------------------------
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]