Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.11.0, 1.12.0
-
None
-
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.