[ https://issues.apache.org/jira/browse/SPARK-4051?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Josh Rosen resolved SPARK-4051. ------------------------------- Resolution: Fixed Fix Version/s: 1.2.0 Issue resolved by pull request 2896 [https://github.com/apache/spark/pull/2896] > Rows in python should support conversion to dictionary > ------------------------------------------------------ > > Key: SPARK-4051 > URL: https://issues.apache.org/jira/browse/SPARK-4051 > Project: Spark > Issue Type: Improvement > Components: SQL > Affects Versions: 1.1.0 > Reporter: Chris Grier > Assignee: Davies Liu > Fix For: 1.2.0 > > > When working with the output of a query against a sqlContext, the result a > Row object with fields accessible via dot notation rather than something > similar to a dictionary. > The issue is that there are libraries (such as pandas and ggplot) that do not > know how to operate on Rows but you can supply field names for the libraries > to use. When the library attempts to use the row, it expects a data type like > a dictionary, indexable using brackets and named field i.e. obj["fieldname"]. -- 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