[ https://issues.apache.org/jira/browse/SPARK-10417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=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<name[0]> > Column<name[1]> > Column<name[2]> > Column<name[3]> > ... > {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