drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Challapalli (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-1641) kvgen functions fails when the input is an index within a repeated map vector
Date Wed, 05 Nov 2014 22:16:36 GMT
Rahul Challapalli created DRILL-1641:
----------------------------------------

             Summary: 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 - Operators, Functions - Drill
            Reporter: Rahul Challapalli
            Assignee: Mehant Baid


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)

Mime
View raw message