GitHub user patrick-nicholson opened a pull request:
https://github.com/apache/spark/pull/17926
[MINOR][SQL][PYSPARK] Allow user to specify numSlices in
SparkSession.createDataFrame
## What changes were proposed in this pull request?
In my experience, pushing `pandas.DataFrame`s to `pyspark.DataFrame`s will
very quickly run up against size issues. These can usually be remedied by
changing configuration parameters (e.g., `spark.rpc.message.maxSize`), but it
is much more convenient to change the level of parallelization used during
`RDD` creation. This option is available in `sparkContext.broadcast`. This pull
request exposes it to `sparkSession.createDataFrame`.
## How was this patch tested?
I have been using a patch implementing this change for a while. I'm only
exposing a keyword argument used by an underlying function to the user.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/patrick-nicholson/spark master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/17926.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #17926
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]