Github user srowen commented on the pull request:
https://github.com/apache/spark/pull/4534#issuecomment-73965544
Hmph. I think we might could work around this if `runJob` didn't have to
return an `Array`, but it does. Even if it collects its results in another
collection it has to get copied to an `Array`. I think that's where this runs
into the mismatch between these Scala types and JVMs and arrays and covariance
every way I can see.
All of these are fairly artificial cases. An empty RDD or partition of a
normal type works fine. I think it's worth making the `EmptyRDD` change to take
care of the `Seq()` case, and treating the rest as just how it is with Scala
and arrays and these types and the current API.
---
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]