Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BFCB7200BF4 for ; Thu, 1 Dec 2016 17:38:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id BEBD4160B0B; Thu, 1 Dec 2016 16:38:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E3424160B05 for ; Thu, 1 Dec 2016 17:37:59 +0100 (CET) Received: (qmail 54082 invoked by uid 500); 1 Dec 2016 16:37:59 -0000 Mailing-List: contact issues-help@drill.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@drill.apache.org Delivered-To: mailing list issues@drill.apache.org Received: (qmail 54041 invoked by uid 99); 1 Dec 2016 16:37:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2016 16:37:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CC9F62C2A6D for ; Thu, 1 Dec 2016 16:37:58 +0000 (UTC) Date: Thu, 1 Dec 2016 16:37:58 +0000 (UTC) From: "Guillaume Champion (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DRILL-5088) Error when reading DBRef column MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 01 Dec 2016 16:38:00 -0000 [ https://issues.apache.org/jira/browse/DRILL-5088?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Champion updated DRILL-5088: -------------------------------------- Description: In a mongo database with DBRef, when a DBRef is inserted in the first line of a mongo's collection drill query failed : {code} 0: jdbc:drill:zk=local> select * from mongo.mydb.contact2; Error: SYSTEM ERROR: CodecConfigurationException: Can't find a codec for class com.mongodb.DBRef. {code} Simple example to reproduce: In mongo instance {code} db.contact2.drop(); db.contact2.insert({ "_id" : ObjectId("582081d96b69060001fd8938"), "account" : DBRef("contact", ObjectId("999cbf116b69060001fd8611")) }); {code} In drill : {code} 0: jdbc:drill:zk=local> select * from mongo.mydb.contact2; Error: SYSTEM ERROR: CodecConfigurationException: Can't find a codec for class com.mongodb.DBRef. [Error Id: 2944d766-e483-4453-a706-3d481397b186 on Analytics-Biznet:31010] (state=,code=0) {code} If the first line doesn't contain de DBRef, drill will querying correctly : In a mongo instance : {code} db.contact2.drop(); db.contact2.insert({ "_id" : ObjectId("582081d96b69060001fd8939") }); db.contact2.insert({ "_id" : ObjectId("582081d96b69060001fd8938"), "account" : DBRef("contact", ObjectId("999cbf116b69060001fd8611")) }); {code} In drill : {code} 0: jdbc:drill:zk=local> select * from mongo.mydb.contact2; +--------------------------------------+---------------------------------------------------------------+ | _id | account | +--------------------------------------+---------------------------------------------------------------+ | {"$oid":"582081d96b69060001fd8939"} | {"$id":{}} | | {"$oid":"582081d96b69060001fd8938"} | {"$ref":"contact","$id":{"$oid":"999cbf116b69060001fd8611"}} | +--------------------------------------+---------------------------------------------------------------+ 2 rows selected (0,563 seconds) {code} was: In a mongo database with DBRef, when a DBRef is inserted in the first line of mongo's collection drill query failed : {code} 0: jdbc:drill:zk=local> select * from mongo.mydb.contact2; Error: SYSTEM ERROR: CodecConfigurationException: Can't find a codec for class com.mongodb.DBRef. {code} Simple example to reproduce: In mongo instance {code} db.contact2.drop(); db.contact2.insert({ "_id" : ObjectId("582081d96b69060001fd8938"), "account" : DBRef("contact", ObjectId("999cbf116b69060001fd8611")) }); {code} In drill : {code} 0: jdbc:drill:zk=local> select * from mongo.mydb.contact2; Error: SYSTEM ERROR: CodecConfigurationException: Can't find a codec for class com.mongodb.DBRef. [Error Id: 2944d766-e483-4453-a706-3d481397b186 on Analytics-Biznet:31010] (state=,code=0) {code} If the first line doesn't contain de DBRef, drill will querying correctly : In a mongo instance : {code} db.contact2.drop(); db.contact2.insert({ "_id" : ObjectId("582081d96b69060001fd8939") }); db.contact2.insert({ "_id" : ObjectId("582081d96b69060001fd8938"), "account" : DBRef("contact", ObjectId("999cbf116b69060001fd8611")) }); {code} In drill : {code} 0: jdbc:drill:zk=local> select * from mongo.mydb.contact2; +--------------------------------------+---------------------------------------------------------------+ | _id | account | +--------------------------------------+---------------------------------------------------------------+ | {"$oid":"582081d96b69060001fd8939"} | {"$id":{}} | | {"$oid":"582081d96b69060001fd8938"} | {"$ref":"contact","$id":{"$oid":"999cbf116b69060001fd8611"}} | +--------------------------------------+---------------------------------------------------------------+ 2 rows selected (0,563 seconds) {code} > Error when reading DBRef column > ------------------------------- > > Key: DRILL-5088 > URL: https://issues.apache.org/jira/browse/DRILL-5088 > Project: Apache Drill > Issue Type: Bug > Components: Execution - Data Types > Environment: drill 1.9.0 > mongo 3.2 > Reporter: Guillaume Champion > > In a mongo database with DBRef, when a DBRef is inserted in the first line of a mongo's collection drill query failed : > {code} > 0: jdbc:drill:zk=local> select * from mongo.mydb.contact2; > Error: SYSTEM ERROR: CodecConfigurationException: Can't find a codec for class com.mongodb.DBRef. > {code} > Simple example to reproduce: > In mongo instance > {code} > db.contact2.drop(); > db.contact2.insert({ "_id" : ObjectId("582081d96b69060001fd8938"), "account" : DBRef("contact", ObjectId("999cbf116b69060001fd8611")) }); > {code} > In drill : > {code} > 0: jdbc:drill:zk=local> select * from mongo.mydb.contact2; > Error: SYSTEM ERROR: CodecConfigurationException: Can't find a codec for class com.mongodb.DBRef. > [Error Id: 2944d766-e483-4453-a706-3d481397b186 on Analytics-Biznet:31010] (state=,code=0) > {code} > If the first line doesn't contain de DBRef, drill will querying correctly : > In a mongo instance : > {code} > db.contact2.drop(); > db.contact2.insert({ "_id" : ObjectId("582081d96b69060001fd8939") }); > db.contact2.insert({ "_id" : ObjectId("582081d96b69060001fd8938"), "account" : DBRef("contact", ObjectId("999cbf116b69060001fd8611")) }); > {code} > In drill : > {code} > 0: jdbc:drill:zk=local> select * from mongo.mydb.contact2; > +--------------------------------------+---------------------------------------------------------------+ > | _id | account | > +--------------------------------------+---------------------------------------------------------------+ > | {"$oid":"582081d96b69060001fd8939"} | {"$id":{}} | > | {"$oid":"582081d96b69060001fd8938"} | {"$ref":"contact","$id":{"$oid":"999cbf116b69060001fd8611"}} | > +--------------------------------------+---------------------------------------------------------------+ > 2 rows selected (0,563 seconds) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)