You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2015/12/16 12:30:47 UTC

[jira] [Resolved] (SPARK-10114) Add optional getters to the spark.sql.Row

     [ 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