drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Gokhman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DRILL-4307) new MongoDB BSON record reader breaks _id SELECT-ion
Date Sun, 24 Jan 2016 15:46:39 GMT

    [ https://issues.apache.org/jira/browse/DRILL-4307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15114360#comment-15114360

Michael Gokhman commented on DRILL-4307:

if instead of a map, the SELECT would return the uuid as a scalar Its ok, however it returns
a strange pointer-like string:
which I think is unusable for anything

It doesn't work if you use it in a WHERE clause, i.e.:
SELECT * FROM mongo.db.collection WHERE _id='[B@3f9df468'
returns 0 zero rows, or doesn't return at all if the data is big enough :)


> 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"} 
> {code}
> as expected.
> however, when working with the master branch, SELECT-ing an _id results in a something
that looks like a pointer:
> {code}
> [B@3149a…]
> {code}
> This is caused by DRILL-3478, and can be avoided by disabling the new BSON record reder:
> {code:sql}
> ALTER SESSION SET store.mongo.bson.record.reader = false
> {code}

This message was sent by Atlassian JIRA

View raw message