[ 
https://issues.apache.org/jira/browse/SPARK-10056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Maciej Bryński updated SPARK-10056:
-----------------------------------
    Description: 
Right now you can get Row element:
- by column name: row.columnName
- by index: row[index] (where index is integer)

My proposition is to add following syntax:
row["columnName"]

It will be solution similar to DataFrame behaviour and should be quite easy by 
implementing __getitem__ method.



  was:
Right now you can get Row element:
- by column name: row.columnName
- by index: row[index] (where index is integer)

My proposition is to add following syntax:
row["columnName"]

It will be solution similar to DataFrame behaviour and should bequite easy by 
implementing __getitem__ method.




> PySpark Row - Support for row["columnName"] syntax
> --------------------------------------------------
>
>                 Key: SPARK-10056
>                 URL: https://issues.apache.org/jira/browse/SPARK-10056
>             Project: Spark
>          Issue Type: Improvement
>            Reporter: Maciej Bryński
>
> Right now you can get Row element:
> - by column name: row.columnName
> - by index: row[index] (where index is integer)
> My proposition is to add following syntax:
> row["columnName"]
> It will be solution similar to DataFrame behaviour and should be quite easy 
> by implementing __getitem__ method.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to