Github user yinxusen commented on the pull request:
https://github.com/apache/spark/pull/10772#issuecomment-172147443
@jkbradley @davies I know why we get error here. If the element of a
`JavaArray` is primitive type, then we can use `list(JavaArray)`. However, if
its elements have complex structures, like `List(model.weights,
model.intercept).map(_.asInstanceOf[Object]).asJava` in the failed test, then
we cannot simply call `list(JavaArray)`, because it cannot convert its inner
elements automatically.
I'll change the fix into my original one.
---
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]