drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arina Ielchiieva (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (DRILL-3434) Applying kvgen on a scalar (field within a map) results in "Unable to get holder type for minor type [LATE] and mode [OPTIONAL]"
Date Mon, 03 Jul 2017 14:52:00 GMT

    [ https://issues.apache.org/jira/browse/DRILL-3434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16072552#comment-16072552
] 

Arina Ielchiieva edited comment on DRILL-3434 at 7/3/17 2:51 PM:
-----------------------------------------------------------------

Works fine on 1.11.0-SNAPSHOT version.
{noformat}
0: jdbc:drill:drillbit=localhost> select * from sys.version;
+------------------+-------------------------------------------+----------------------------------------------------------------------------+----------------------------+--------------+----------------------------+
|     version      |                 commit_id                 |                         
     commit_message                               |        commit_time         | build_email
 |         build_time         |
+------------------+-------------------------------------------+----------------------------------------------------------------------------+----------------------------+--------------+----------------------------+
| 1.11.0-SNAPSHOT  | 6446e56f292a5905d646462c618c056839ad5198  | DRILL-5538: Create TopProject
with validatedNodeType after PHYSICAL phase  | 27.06.2017 @ 10:03:56 UTC  | Unknown      |
30.06.2017 @ 12:49:51 UTC  |
+------------------+-------------------------------------------+----------------------------------------------------------------------------+----------------------------+--------------+----------------------------+
{noformat}

{noformat}
0: jdbc:drill:drillbit=localhost> select kvgen(d.map.abcd) from `data.json` d;
Error: SYSTEM ERROR: DrillRuntimeException: kvgen function only supports Simple maps as input

Fragment 0:0

[Error Id: 2f82690e-da0f-4ba0-b355-ad03a050d405 on master:31010] (state=,code=0)
{noformat}


was (Author: arina):
Works fine on 1.11.0-SNAPSHOT version.
{noformat}
0: jdbc:drill:drillbit=localhost> select * from sys.version;
+------------------+-------------------------------------------+----------------------------------------------------------------------------+----------------------------+--------------+----------------------------+
|     version      |                 commit_id                 |                         
     commit_message                               |        commit_time         | build_email
 |         build_time         |
+------------------+-------------------------------------------+----------------------------------------------------------------------------+----------------------------+--------------+----------------------------+
| 1.11.0-SNAPSHOT  | 6446e56f292a5905d646462c618c056839ad5198  | DRILL-5538: Create TopProject
with validatedNodeType after PHYSICAL phase  | 27.06.2017 @ 10:03:56 UTC  | Unknown      |
30.06.2017 @ 12:49:51 UTC  |
+------------------+-------------------------------------------+----------------------------------------------------------------------------+----------------------------+--------------+----------------------------+
{noformat}

0: jdbc:drill:drillbit=localhost> select kvgen(d.map.abcd) from `data.json` d;
Error: SYSTEM ERROR: DrillRuntimeException: kvgen function only supports Simple maps as input

Fragment 0:0

[Error Id: 2f82690e-da0f-4ba0-b355-ad03a050d405 on master:31010] (state=,code=0)

> 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.4.14#64029)

Mime
View raw message