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 4C97717B37 for ; Wed, 4 Mar 2015 02:07:05 +0000 (UTC) Received: (qmail 30186 invoked by uid 500); 4 Mar 2015 02:07:04 -0000 Delivered-To: apmail-drill-issues-archive@drill.apache.org Received: (qmail 30154 invoked by uid 500); 4 Mar 2015 02:07:04 -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 30144 invoked by uid 99); 4 Mar 2015 02:07:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2015 02:07:04 +0000 Date: Wed, 4 Mar 2015 02:07:04 +0000 (UTC) From: "Bhallamudi Venkata Siva Kamesh (JIRA)" To: issues@drill.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (DRILL-1692) select * on mongo join returns invalid results MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DRILL-1692?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14346234#comment-14346234 ] Bhallamudi Venkata Siva Kamesh commented on DRILL-1692: ------------------------------------------------------- Attaching the patch generated using git format-patch. > 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)