You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Chun Chang (JIRA)" <ji...@apache.org> on 2015/04/02 22:37:53 UTC

[jira] [Resolved] (DRILL-2201) clear error message on join on complex type

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

Chun Chang resolved DRILL-2201.
-------------------------------
          Resolution: Fixed
    Target Version/s: 1.0.0

This appears fixed.

{code}
0: jdbc:drill:schema=dfs.drillTestDirComplexJ> select a.id from `complex.json` a left outer join `complex.json` b on a.oooa=b.oooa;
Query failed: RemoteRpcException: Failure while running fragment., Map, Array or repeated scalar type should not be used in group by, order by or in a comparison operator. Drill does not support compare between MAP:REQUIRED and MAP:REQUIRED. [ 788e53b1-ad81-41ab-9923-4b8f586f6117 on qa-node120.qa.lab:31010 ]
[ 788e53b1-ad81-41ab-9923-4b8f586f6117 on qa-node120.qa.lab:31010 ]


Error: exception while executing query: Failure while executing query. (state=,code=0)
{code}

> clear error message on join on complex type
> -------------------------------------------
>
>                 Key: DRILL-2201
>                 URL: https://issues.apache.org/jira/browse/DRILL-2201
>             Project: Apache Drill
>          Issue Type: Bug
>          Components: Execution - Data Types
>    Affects Versions: 0.8.0
>            Reporter: Chun Chang
>            Assignee: Chun Chang
>            Priority: Minor
>             Fix For: 1.0.0
>
>
> #Mon Feb 09 15:58:57 EST 2015
> git.commit.id.abbrev=3d863b5
> Dataset can be downloaded from 
> https://s3.amazonaws.com/apache-drill/files/complex.json.gz
> We do not support join condition on complex type. But the error message is not clear to end user.
> {code}
> 0: jdbc:drill:schema=dfs.drillTestDirComplexJ> select a.id from `complex.json` a left outer join `complex.json` b on a.oooa=b.oooa;
> Query failed: RemoteRpcException: Failure while running fragment., Failure while trying to materialize incoming schema.  Errors:
> Error in expression at index 0.  Error: Missing function implementation: [hash(MAP-REQUIRED)].  Full expression: null.. [ 6a61d61f-670f-4ddc-bb1d-09a47f49f38e on qa-node120.qa.lab:31010 ]
> [ 6a61d61f-670f-4ddc-bb1d-09a47f49f38e on qa-node120.qa.lab:31010 ]
> Error: exception while executing query: Failure while executing query. (state=,code=0)
> {code}
> Here oooa is a complex type:
> {code}
> {
>     "oooa": {
>         "oa": {
>             "oab": {
>                 "oabc": [
>                     {
>                         "rowId": 1
>                     },
>                     {
>                         "rowValue1": 1,
>                         "rowValue2": 1
>                     }
>                 ]
>             }
>         }
>     }
> }
> {code}



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