Rahul Challapalli created DRILL-3434:
----------------------------------------

             Summary: Applying kvgen on a scalar (field within a map) results 
in "Unable to get holder type for minor type [LATE] and mode [OPTIONAL]"
                 Key: DRILL-3434
                 URL: https://issues.apache.org/jira/browse/DRILL-3434
             Project: Apache Drill
          Issue Type: Bug
          Components: Execution - Flow, Functions - Drill
            Reporter: Rahul Challapalli
            Assignee: Mehant Baid
         Attachments: error.log

git.commit.id.abbrev=e3fc7e9

Data :
{code}
{
  "id":1,
  "map": {
      "map1":{"col1":1, "col2":2}
  }
}
{code}

The below query returns an error now
{code}
0: jdbc:drill:schema=dfs_eea> select kvgen(d.map.abcd) from `data.json` d;
Error: SYSTEM ERROR: UnsupportedOperationException: Unable to get holder type 
for minor type [LATE] and mode [OPTIONAL]

Fragment 0:0

[Error Id: 62d8b3ad-62d1-43e8-a39a-18b19399fca0 on qa-node190.qa.lab:31010] 
(state=,code=0)
{code}

It used to return a proper error message in the past (kvgen function only 
supports Simple maps as input)



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

Reply via email to