You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Michael Armbrust (JIRA)" <ji...@apache.org> on 2014/08/01 00:11:39 UTC

[jira] [Updated] (SPARK-2096) Correctly parse dot notations for accessing an array of structs

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

Michael Armbrust updated SPARK-2096:
------------------------------------

    Target Version/s: 1.2.0  (was: 1.1.0)

> Correctly parse dot notations for accessing an array of structs
> ---------------------------------------------------------------
>
>                 Key: SPARK-2096
>                 URL: https://issues.apache.org/jira/browse/SPARK-2096
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 1.0.0
>            Reporter: Yin Huai
>            Priority: Minor
>              Labels: starter
>
> For example, "arrayOfStruct" is an array of structs and every element of this array has a field called "field1". "arrayOfStruct[0].field1" means to access the value of "field1" for the first element of "arrayOfStruct", but the SQL parser (in sql-core) treats "field1" as an alias. Also, "arrayOfStruct.field1" means to access all values of "field1" in this array of structs and the returns those values as an array. But, the SQL parser cannot resolve it.



--
This message was sent by Atlassian JIRA
(v6.2#6252)