Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-2201

clear error message on join on complex type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.8.0
    • 1.0.0
    • Execution - Data Types
    • None

    Description

      #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.

      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)
      

      Here oooa is a complex type:

      {
          "oooa": {
              "oa": {
                  "oab": {
                      "oabc": [
                          {
                              "rowId": 1
                          },
                          {
                              "rowValue1": 1,
                              "rowValue2": 1
                          }
                      ]
                  }
              }
          }
      }
      

      Attachments

        Activity

          People

            cchang@maprtech.com Chun Chang
            cchang@maprtech.com Chun Chang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: