Mehant Baid created DRILL-1223:
----------------------------------

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


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.2#6252)

Reply via email to