You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Jinfeng Ni (JIRA)" <ji...@apache.org> on 2014/11/06 01:51:34 UTC

[jira] [Assigned] (DRILL-1634) Drill fails when querying a nested array within a repeated map.

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

Jinfeng Ni reassigned DRILL-1634:
---------------------------------

    Assignee: Jacques Nadeau  (was: Jinfeng Ni)

Hi Jacques,

Could you please review the patch of DRILL-1634?

Test done:
  Add a new unit test
  Run full mvn build and functional regression. 

> Drill fails when querying a nested array within a repeated map. 
> ----------------------------------------------------------------
>
>                 Key: DRILL-1634
>                 URL: https://issues.apache.org/jira/browse/DRILL-1634
>             Project: Apache Drill
>          Issue Type: Bug
>            Reporter: Jinfeng Ni
>            Assignee: Jacques Nadeau
>         Attachments: 0001-DRILL-1634-Fix-issue-in-complex-type-expression-type.patch
>
>
> Given the following JSON input data:
> {code}
> { "a":[{"b": [["str1","str2"], ["str3", "str4"]]}] }
> { "a":[{"b": [["str10","str20"], ["str30", "str40"]]}] }
> {code}
> If we want to retrieve the first element in array b, which is the first element in array a, using the following query, Drill will fail with error:
> {code}
> select t.a[0].b[0] from dfs.`/Users/jni/work/data/json/samplejson.json` t;
> {code}
> {code}
> Query failed: Failure while running fragment., You tried to read a [CopyAsValueVarChar] type when you are using a field reader of type [SingleLikeRepeatedMapReaderImpl]. [ d655b148-5c0e-4293-8472-8ee93d6df801 on adminisorsmbp53:31010 ]
> {code}



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