1

Drill queries on collections from a Mongo database fail whenever there are DBRef fields present in collection items, regardless of the query.

For phones collection with an example item inside:

{
    "_id" : ObjectId("e14323e54c51fa3"),
    "customer" : DBRef("Customer", ObjectId("3e56a45f2324a")),
    "phone" : "123142312"
}

the query

SELECT * FROM phones LIMIT 1;

results in

Error: SYSTEM ERROR: CodecConfigurationException: Can't find a codec for class com.mongodb.DBRef.

If a collection does not contain items with DBRefs everything works as expected. Any idea how to work around this would be appreciated.

code_burgar
  • 12,025
  • 4
  • 35
  • 53

0 Answers0