-
Notifications
You must be signed in to change notification settings - Fork 28.8k
[SPARK-6660][MLLIB] pythonToJava doesn't recognize object arrays #5318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Test build #29573 has started for PR 5318 at commit |
Test build #29575 has started for PR 5318 at commit |
obj.asInstanceOf[JArrayList[_]].asScala | ||
obj match { | ||
case list: JArrayList[_] => list.asScala | ||
case arr: Array[_] => arr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this match with []Byte
?
I saw something like this
case c if c.getClass.isArray =>
Not sure it's necessary or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. This matches all Java Arrays.
LGTM, thanks! |
Test build #29573 has finished for PR 5318 at commit
|
Test FAILed. |
Test build #632 has started for PR 5318 at commit |
Test build #29575 has finished for PR 5318 at commit
|
Test FAILed. |
davies Author: Xiangrui Meng <[email protected]> Closes #5318 from mengxr/SPARK-6660 and squashes the following commits: 0f66ec2 [Xiangrui Meng] recognize object arrays ad8c42f [Xiangrui Meng] add a test for SPARK-6660 (cherry picked from commit 4815bc2) Signed-off-by: Xiangrui Meng <[email protected]> Conflicts: python/pyspark/mllib/tests.py
Merged into master and branch-1.3. The failed test is an unrelated yarn test. |
Test build #632 timed out for PR 5318 at commit |
@davies