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

NullPointerException while querying MongoDB collection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.11.0, 1.12.0
    • None
    • Server
    • None

    Description

      I have installed Drill and configured it to connect to a MongoDB instance. That instance as a collection with a single document. When I query that collection using:

      select ports from mongo.ivre.hosts;

      It fails with a NullPointerException. I'm able to query that collection as long as I don't select the "ports" property. Looking at the exception stack trace and respective Drill code it is clear that the "map" variable isn't suppose to be "null".

      public MapOrListWriter list(final String name) {
        assert map != null;
        return new MapOrListWriterImpl(map.list(name));
      }
      

      I couldn't figure out why it wasn't being initialized. I have attached the log and the collection BSON file. Thanks in advance.

      Attachments

        1. collection.bson.log
          71 kB
          Duarte Silva
        2. drillbit.log
          8 kB
          Duarte Silva

        Activity

          People

            Unassigned Unassigned
            dsncia Duarte Silva
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: