You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2016/04/28 20:23:13 UTC

[jira] [Resolved] (SPARK-14965) StructType throws exception for missing field

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

Reynold Xin resolved SPARK-14965.
---------------------------------
       Resolution: Fixed
         Assignee: Gregory Hart
    Fix Version/s: 2.0.0
                   1.6.2

> StructType throws exception for missing field
> ---------------------------------------------
>
>                 Key: SPARK-14965
>                 URL: https://issues.apache.org/jira/browse/SPARK-14965
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.4.0, 1.6.1
>            Reporter: Gregory Hart
>            Assignee: Gregory Hart
>            Priority: Minor
>             Fix For: 1.6.2, 2.0.0
>
>
> The ScalaDoc for StructType.apply(String) indicates the method should return null if it does not contain a field with the given name. The method implementation throws an exception in this case instead.
> I suggest that either the implementation should be corrected to return null if the field is not found, or the ScalaDoc be corrected to indicate an exception is thrown.



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