You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Jacques Nadeau (JIRA)" <ji...@apache.org> on 2014/11/17 02:35:41 UTC

[jira] [Updated] (DRILL-1223) Querying a field in a repeated map should return an array

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

Jacques Nadeau updated DRILL-1223:
----------------------------------
    Fix Version/s: Future

> Querying a field in a repeated map should return an array 
> ----------------------------------------------------------
>
>                 Key: DRILL-1223
>                 URL: https://issues.apache.org/jira/browse/DRILL-1223
>             Project: Apache Drill
>          Issue Type: Improvement
>            Reporter: Mehant Baid
>            Priority: Minor
>             Fix For: Future
>
>
> Consider the following json file:
> {"rownum":1, "arrayval": [ {"val1":"a1"}, {"val1":"a2"} ]}
> {"rownum":2, "arrayval": [ {"val1":"b1"}, {"val1": "b2"} ]}
> If we have the following query, we will fail with a class cast exception.
> select rownum, table.arrayval.val1 from dfs.`input.json` as table;
> We should return an array of type 'val1' like the following
> [a1, a2]
> [b1, b2]



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