[jira] [Commented] (SPARK-10417) Iterating through Column results in infinite loop

2015-09-02 Thread Apache Spark (JIRA)

[ 
https://issues.apache.org/jira/browse/SPARK-10417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14727432#comment-14727432
 ] 

Apache Spark commented on SPARK-10417:
--

User '0x0FFF' has created a pull request for this issue:
https://github.com/apache/spark/pull/8574

> Iterating through Column results in infinite loop
> -
>
> Key: SPARK-10417
> URL: https://issues.apache.org/jira/browse/SPARK-10417
> Project: Spark
>  Issue Type: Bug
>  Components: PySpark
>Affects Versions: 1.5.0
>Reporter: Zoltan Toth
>Priority: Minor
>
> Iterating through a _Column_ object results in an infinite loop.
> {code}
> df = sqlContext.jsonRDD(sc.parallelize(['{"name": "El Magnifico"}']))
> for i in df["name"]: print i
> {code}
> Result:
> {code}
> Column
> Column
> Column
> Column
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Commented] (SPARK-10417) Iterating through Column results in infinite loop

2015-09-02 Thread Alexey Grishchenko (JIRA)

[ 
https://issues.apache.org/jira/browse/SPARK-10417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=14727435#comment-14727435
 ] 

Alexey Grishchenko commented on SPARK-10417:


Problem caused by the fact that _Column_ object has method ___getitem___, which 
makes it iterable from Python standpoint

> Iterating through Column results in infinite loop
> -
>
> Key: SPARK-10417
> URL: https://issues.apache.org/jira/browse/SPARK-10417
> Project: Spark
>  Issue Type: Bug
>  Components: PySpark
>Affects Versions: 1.5.0
>Reporter: Zoltan Toth
>Priority: Minor
>
> Iterating through a _Column_ object results in an infinite loop.
> {code}
> df = sqlContext.jsonRDD(sc.parallelize(['{"name": "El Magnifico"}']))
> for i in df["name"]: print i
> {code}
> Result:
> {code}
> Column
> Column
> Column
> Column
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org