Github user yinxusen commented on the pull request:
https://github.com/apache/spark/pull/10772#issuecomment-172148624
@jkbradley I have changed the fix. However, here is a little tricky. If a
developer wants to convert an `Array[Array[Int]]` or an
`Array[Array[Array[Int]]]`, etc. , it may still have problem. But here, it's
non-trivial to check the nested structure.
For complext structure, an example from current code is in
[VectorIndexer](https://github.com/apache/spark/blob/v1.6.0/mllib/src/main/scala/org/apache/spark/ml/feature/VectorIndexer.scala#L266).
Do you have any recommendations for it? How about we add an assertion in the
above code:
```scala
case Array[Array[_]] => throw new XXXException("You need transform nested
array into Java list yourself")
```
---
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]