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

MongoDB ObjectID becomes MAP under store.mongo.bson.record.reader = false

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.20.0
    • 1.20.0
    • None
    • None

    Description

      The following query works in Drill 1.19 but not in 1.20.

      SELECT `Elements_Efforts`.`EffortTypeName` AS `EffortTypeName`,
        `Elements`.`ElementSubTypeName` AS `ElementSubTypeName`,
        `Elements`.`ElementTypeName` AS `ElementTypeName`,
        `Elements`.`PlanID` AS `PlanID`
      FROM `mongo.grounds`.`Elements` `Elements`
        INNER JOIN `mongo.grounds`.`Elements_Efforts` `Elements_Efforts` ON (`Elements`.`_id` = `Elements_Efforts`.`_id`)
      WHERE (`Elements`.`PlanID` = '1623263140')
      GROUP BY `Elements_Efforts`.`EffortTypeName`,
        `Elements`.`ElementSubTypeName`,
        `Elements`.`ElementTypeName`,
        `Elements`.`PlanID` 

      Two issues have been reported, one is a memory leak

      org.apache.drill.common.exceptions.UserException: DATA_READ ERROR: Memory was leaked by query. Memory leaked: (1945600) 

      and the other is a data type error

      org.apache.drill.common.exceptions.UserRemoteException: SYSTEM ERROR: UnsupportedOperationException: Map, Array, Union 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. 

      .  A stack trace is attached and a query profile will be attached when (and if) I receive it.

      stacktrace.txt

      Attachments

        1. profile.json
          22 kB
          James Turton
        2. stacktrace.txt
          36 kB
          James Turton

        Issue Links

          Activity

            People

              luoc Cong Luo
              dzamo James Turton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: