Github user srowen commented on the issue:
https://github.com/apache/spark/pull/18899
This isn't a public method though. The dv.toSparseWithSize(2) error will
never come up unless Spark causes it, and there's no contract for its behavior
in that case. It's probably over-specifying things to require it to throw
AIOOBE, for example; nothing depends on that nor should.
It doesn't hurt to unit test though and the additional test seems fine.
---
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]