You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Rahul Challapalli (JIRA)" <ji...@apache.org> on 2015/05/06 04:19:01 UTC

[jira] [Closed] (DRILL-1641) kvgen functions fails when the input is an index within a repeated map vector

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

Rahul Challapalli closed DRILL-1641.
------------------------------------

Verified and added the below testcase

Functional/Passing/json_kvgenflatten/kvgen/kvgen_DRILL-1641.q

> kvgen functions fails when the input is an index within a repeated map vector
> -----------------------------------------------------------------------------
>
>                 Key: DRILL-1641
>                 URL: https://issues.apache.org/jira/browse/DRILL-1641
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Relational Operators, Functions - Drill
>            Reporter: Rahul Challapalli
>            Assignee: Daniel Barclay (Drill)
>             Fix For: 0.7.0
>
>         Attachments: DRILL-1641.1.patch, error.log, explain_plan.txt
>
>
> git.commit.id.abbrev=6dca24a
> kvgen function does not work for the below dataset which has an array of maps
> {code}
> {
>    "col1" : [
>         {"m1":"val1", "m2":"val2"},
>         {"m3":"val3", "m4":"val4"}
>     ]
> }
> {code}
> Query :
> {code}
> 0: jdbc:drill:schema=dfs> select kvgen(col1[0]) from `json_kvgenflatten/temp.json`;
> Query failed: Failure while running fragment. kvgen function only supports Simple maps as input [c9bf5998-2198-4b12-a3b8-2a5a7b1e938f]
> Error: exception while executing query: Failure while trying to get next result batch. (state=,code=0)
> {code}
> I attached the explain plan and the logs for the failing query. Let me know if you need anything else.



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