You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Nadav Grossug (JIRA)" <ji...@apache.org> on 2014/12/15 15:57:13 UTC
[jira] [Created] (SPARK-4851) can't pass a static method to rdd
object in python
Nadav Grossug created SPARK-4851:
------------------------------------
Summary: can't pass a static method to rdd object in python
Key: SPARK-4851
URL: https://issues.apache.org/jira/browse/SPARK-4851
Project: Spark
Issue Type: Bug
Components: PySpark
Affects Versions: 1.0.0
Environment: mac Os
Reporter: Nadav Grossug
class A:
@staticmethod
def calc_something(self, x):
return x*x
rdd = sc.parallelize(xrange(1,1000),60)
rdd.count()
rdd.map(lambda x:A.calc_something(x))
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org