You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Josh Rosen (JIRA)" <ji...@apache.org> on 2014/09/07 01:13:28 UTC
[jira] [Resolved] (SPARK-2334) Attribute Error calling
PipelinedRDD.id() in pyspark
[ https://issues.apache.org/jira/browse/SPARK-2334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Josh Rosen resolved SPARK-2334.
-------------------------------
Resolution: Fixed
Fix Version/s: 1.2.0
Issue resolved by pull request 2296
[https://github.com/apache/spark/pull/2296]
> Attribute Error calling PipelinedRDD.id() in pyspark
> ----------------------------------------------------
>
> Key: SPARK-2334
> URL: https://issues.apache.org/jira/browse/SPARK-2334
> Project: Spark
> Issue Type: Bug
> Components: PySpark
> Affects Versions: 1.0.0, 1.1.0
> Reporter: Diana Carroll
> Fix For: 1.2.0
>
>
> calling the id() function of a PipelinedRDD causes an error in PySpark. (Works fine in Scala.)
> The second id() call here fails, the first works:
> {code}
> r1 = sc.parallelize([1,2,3])
> r1.id()
> r2=r1.map(lambda i: i+1)
> r2.id()
> {code}
> Error:
> {code}
> ---------------------------------------------------------------------------
> AttributeError Traceback (most recent call last)
> <ipython-input-31-a0cf66fcf645> in <module>()
> ----> 1 r2.id()
> /usr/lib/spark/python/pyspark/rdd.py in id(self)
> 180 A unique ID for this RDD (within its SparkContext).
> 181 """
> --> 182 return self._id
> 183
> 184 def __repr__(self):
> AttributeError: 'PipelinedRDD' object has no attribute '_id'
> {code}
--
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