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

[MongoDB] Exception on bson mixin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.2.0
    • None
    • Storage - MongoDB
    • None
    • Drill running on Linux Suse 2.6

    Description

      org.apache.drill.common.exceptions.UserRemoteException: SYSTEM ERROR: IllegalArgumentException: You tried to write a BigInt type when you are using a ValueWriter of type NullableFloat8WriterImpl. Fragment 0:0 [Error Id: 337c58a4-2f3c-4f12-bb9b-ecd2c58a9b65

      If collection owns data of different bson type 1 (double) and 16 (32 bits integer), I'm getting the given exception

      Data:

      // 2 documents in the collection
      > db.test.find().pretty()

      { "_id" : ObjectId("5622bcebf9f16d8b892d498e"), "MoyLignesPreparees" : 0 } { "_id" : ObjectId("5622bcebf9f16d8b892d498d"), "MoyLignesPreparees" : 0.5 }

      // 2 types of data
      > db.test.count({ "MoyLignesPreparees":

      { $type: 1 }

      })
      1
      > db.test.count({ "MoyLignesPreparees":

      { $type: 16 }

      })
      1

      Attachments

        Activity

          People

            Unassigned Unassigned
            Jaaaaack W.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: