drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AnilKumar B <akumarb2...@gmail.com>
Subject Re: [MongoDB] - Why not returning the _id when using *
Date Mon, 19 Oct 2015 11:47:21 GMT
Hi Tugdual,

>> I do not understand why the '_id' is not returned when I do:

>> select * from mongo.db.collection

>> Any reason?
In most of the scenarios _id is system generated and not used for
analytics. That's why, we thought of ignoring this field as of  "select *",
but user can explicitly mention _id in queries and get the results.

Other than this, there is no particular reason.




Thanks & Regards,
B Anil Kumar.

On Mon, Oct 19, 2015 at 10:54 AM, Tugdual Grall <tugdual@gmail.com> wrote:

> Hello,
>
> I do not understand why the '_id' is not returned when I do:
>
> select * from mongo.db.collection
>
> Any reason?
>
> I would like to remove this line:
>
> https://github.com/apache/drill/blob/master/contrib/storage-mongo/src/main/java/org/apache/drill/exec/store/mongo/MongoRecordReader.java#L82
>
>
> (This would solve this issue in the same time:
> https://issues.apache.org/jira/browse/DRILL-3505 )
>
> Regards
> Tug
> @tgrall
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message