Commit 17d1071
[SPARK-12834][ML][PYTHON][BACKPORT] Change ser/de of JavaArray and JavaList
Backport of SPARK-12834 for branch-1.6
Original PR: #10772
Original commit message:
We use `SerDe.dumps()` to serialize `JavaArray` and `JavaList` in `PythonMLLibAPI`, then deserialize them with `PickleSerializer` in Python side. However, there is no need to transform them in such an inefficient way. Instead of it, we can use type conversion to convert them, e.g. `list(JavaArray)` or `list(JavaList)`. What's more, there is an issue to Ser/De Scala Array as I said in https://issues.apache.org/jira/browse/SPARK-12780
Author: Xusen Yin <[email protected]>
Closes #10941 from jkbradley/yinxusen-SPARK-12834-1.6.1 parent 85518ed commit 17d1071
File tree
1 file changed
+5
-1
lines changed- mllib/src/main/scala/org/apache/spark/mllib/api/python
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1464 | 1464 | | |
1465 | 1465 | | |
1466 | 1466 | | |
1467 | | - | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
| 1470 | + | |
| 1471 | + | |
1468 | 1472 | | |
1469 | 1473 | | |
1470 | 1474 | | |
| |||
0 commit comments