You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Michael Gokhman (JIRA)" <ji...@apache.org> on 2016/01/24 16:53:39 UTC
[jira] [Comment Edited] (DRILL-4307) new MongoDB BSON record reader
breaks _id SELECT-ion
[ https://issues.apache.org/jira/browse/DRILL-4307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15114360#comment-15114360 ]
Michael Gokhman edited comment on DRILL-4307 at 1/24/16 3:52 PM:
-----------------------------------------------------------------
if instead of a map, the SELECT would return the uuid as a scalar Its ok, however it returns a strange pointer-like string:
{code}
[B@3f9df468
{code}
which I think is unusable for anything
It doesn't work if you use it in a WHERE clause, i.e.:
{code}
SELECT * FROM mongo.db.collection WHERE _id='[B@3f9df468'
{code}
returns 0 zero rows, or doesn't return at all if the data is big enough :)
In addition, the original uuid from Mongo is useful to later query the Mongo directly... is it possible to extract the uuid from this pointer/blob string above?
Thanks
was (Author: michael.stucco):
if instead of a map, the SELECT would return the uuid as a scalar Its ok, however it returns a strange pointer-like string:
{code}
[B@3f9df468
{code}
which I think is unusable for anything
It doesn't work if you use it in a WHERE clause, i.e.:
{code}
SELECT * FROM mongo.db.collection WHERE _id='[B@3f9df468'
{code}
returns 0 zero rows, or doesn't return at all if the data is big enough :)
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"}
> {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
(v6.3.4#6332)