Github user srowen commented on the pull request:
https://github.com/apache/spark/pull/6518#issuecomment-113450820
The number of partitions is generally equal to the number of files. I don't
think it can be less; it can be more. Really, the minPartitions setting rarely
does anything; it's just a suggestion anyway. It might cause Hadoop to return
multiple splits per file (which would be bad here actually). But it is
definitely not a maximum and you can see this is incorrect, as it's passed to
`setMinPartitions`.
I suppose I'd argue that this arg should go away entirely as it seems like
it can only hurt. At this point though it exists, and its name and doc is
correct relative to what it does.
---
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]