You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@drill.apache.org by "Mariano Ruiz (JIRA)" <ji...@apache.org> on 2015/03/04 04:11:04 UTC
[jira] [Issue Comment Deleted] (DRILL-1692) select * on mongo join
returns invalid results
[ https://issues.apache.org/jira/browse/DRILL-1692?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mariano Ruiz updated DRILL-1692:
--------------------------------
Comment: was deleted
(was: This is the log where the query is executed with LIMIT clause and no errors)
> select * on mongo join returns invalid results
> ----------------------------------------------
>
> Key: DRILL-1692
> URL: https://issues.apache.org/jira/browse/DRILL-1692
> Project: Apache Drill
> Issue Type: Bug
> Components: Storage - MongoDB
> Affects Versions: 0.6.0
> Environment: select * queries on mongo joins
> Reporter: B Anil Kumar
> Assignee: Parth Chandra
> Fix For: 0.8.0
>
> Attachments: 0001-Fixing-Mongo-join-issue-when-is-selected.patch
>
>
> select * on mongo joins gives improper results. Need to modify the schema handling logic in the case of 'select *' logic in MongoRecordReader.
> For example when we fire a below query on mongo.employee.`join1` table, the results are as below.
> SELECT * FROM mongo.employee.`join1` t1 JOIN mongo.employee.`join1` t2 ON t1.`employee_id` = t2.`employee_id`
> sample documents in mongo.employee.`join1` table:
> { "employee_id" : 1 , "first_name" : "Anil"}
> { "employee_id" : 2 , "first_name" : "Kamesh"}
> Results:
> {noformat}
> { "employee_id" : 1 , "first_name" : "Anil"} { "employee_id" : 1 , "first_name" : "Anil"}
> { "employee_id" : 1 , "first_name" : "Anil"} { "employee_id" : 2 , "first_name" : "Kamesh"}
> { "employee_id" : 2 , "first_name" : "Kamesh"} { "employee_id" : 1 , "first_name" : "Anil"}
> { "employee_id" : 2 , "first_name" : "Kamesh"} { "employee_id" : 2 , "first_name" : "Kamesh"}
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)