spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Owen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SPARK-10114) Add optional getters to the spark.sql.Row
Date Wed, 16 Dec 2015 11:30:47 GMT

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

Sean Owen resolved SPARK-10114.
-------------------------------
    Resolution: Duplicate

> Add optional getters to the spark.sql.Row
> -----------------------------------------
>
>                 Key: SPARK-10114
>                 URL: https://issues.apache.org/jira/browse/SPARK-10114
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: etienne
>            Priority: Trivial
>
> Add function 
> {code}
> def getAsOpt[T](i : Int ) : Option[T] 
> def getAsOption[T](filedname : String) : Option[T]
> {code}
> [PR here|https://github.com/apache/spark/pull/8312#issuecomment-132607361]
> This will clarify the code which extract optional value from row.



--
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


Mime
View raw message