Github user davies commented on the pull request:
https://github.com/apache/spark/pull/1894#issuecomment-52598293
I had not find a way to solve this problem, we can not control exactly how
many items will be placed in each partition.
In this PR, it will raise an exception. Also, we have documented this in
the API doc.
For this user cases, zipWithIndex() is what user wanted.
---
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]