Github user davies commented on a diff in the pull request:
https://github.com/apache/spark/pull/6233#discussion_r30538877
--- Diff: core/src/main/scala/org/apache/spark/api/python/PythonUtils.scala
---
@@ -60,4 +60,32 @@ private[spark] object PythonUtils {
def toScalaMap[K, V](jm: java.util.Map[K, V]): Map[K, V] = {
jm.toMap
}
+
+ /**
+ * Convert java Integer into Scala Long (for calling API with varargs)
+ */
+ def toScalaLong(ji: java.lang.Integer): Long = {
--- End diff --
These are not necessary, Py4j could do this automatically.
---
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]