Github user MLnick commented on a diff in the pull request:
https://github.com/apache/spark/pull/1791#discussion_r16071018
--- Diff: core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala
---
@@ -741,6 +741,23 @@ private[spark] object PythonRDD extends Logging {
}
}
}
+
+ /**
+ * Convert an RDD of serialized Python objects to RDD of objects, that
is usable by PySpark.
+ */
+ def pythonToJava(pyRDD: JavaRDD[Array[Byte]], batched: Boolean):
JavaRDD[Any] = {
--- End diff --
minor point - but we created `SerDeUtil` object for the
SequenceFile/InputFormat stuff, maybe these Java <-> Python conversion methods
can all live there instead, it's a little cleaner.
---
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]