Return-Path: X-Original-To: apmail-drill-issues-archive@minotaur.apache.org Delivered-To: apmail-drill-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2714A18DB1 for ; Sun, 24 Jan 2016 17:03:40 +0000 (UTC) Received: (qmail 85654 invoked by uid 500); 24 Jan 2016 17:03:40 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 85600 invoked by uid 500); 24 Jan 2016 17:03:40 -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 85560 invoked by uid 99); 24 Jan 2016 17:03:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Jan 2016 17:03:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E03982C1F57 for ; Sun, 24 Jan 2016 17:03:39 +0000 (UTC) Date: Sun, 24 Jan 2016 17:03:39 +0000 (UTC) From: "Michael Gokhman (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-4307) new MongoDB BSON record reader breaks _id SELECT-ion MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-4307?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1511= 4380#comment-15114380 ]=20 Michael Gokhman commented on DRILL-4307: ---------------------------------------- ok thanks, I indeed managed to select using: {code} SELECT * from mongo.db.collection WHERE _id=3DBINARY_STRING('V)x\x84H0\x8F\= x11\x94\x11\x1Eq') limit 1; {code} And I also see that the binary value is a hex-decoding of the original $oid= . in python: {code} 'V)x\x84H0\x8F\x11\x94\x11\x1Eq'.encode('hex') =3D '5629788448308f1194111e7= 1' {code} I think it will be much more intuitive if instead of the pointer-thing, the= SELECT will simply return the original $oid string, i.e.=20 "5629788448308f1194111e71" in the case above (as returned by mongo cli) Thanks > new MongoDB BSON record reader breaks _id SELECT-ion > ---------------------------------------------------- > > Key: DRILL-4307 > URL: https://issues.apache.org/jira/browse/DRILL-4307 > Project: Apache Drill > Issue Type: Bug > Components: Storage - MongoDB > Affects Versions: 1.5.0 > Reporter: Michael Gokhman > > in Drill 1.4, SELECT-ing an _id results in: > {code} > {"$oid":"567ff2697f2310849fea0666"}=20 > {code} > as expected. > however, when working with the master branch, SELECT-ing an _id results i= n a something that looks like a pointer: > {code} > [B@3149a=E2=80=A6] > {code} > This is caused by DRILL-3478, and can be avoided by disabling the new BSO= N record reder: > {code:sql} > ALTER SESSION SET store.mongo.bson.record.reader =3D false > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)