Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-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 D6C2718AF9 for ; Wed, 22 Jul 2015 03:47:04 +0000 (UTC) Received: (qmail 57819 invoked by uid 500); 22 Jul 2015 03:47:04 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 57796 invoked by uid 500); 22 Jul 2015 03:47:04 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 57786 invoked by uid 99); 22 Jul 2015 03:47:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jul 2015 03:47:04 +0000 Date: Wed, 22 Jul 2015 03:47:04 +0000 (UTC) From: "fatkun (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-11335) Multi-Join Inner Query producing incorrect results MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-11335?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] fatkun updated HIVE-11335: -------------------------- Attachment: query1.txt query2.txt attach query explain > Multi-Join Inner Query producing incorrect results > -------------------------------------------------- > > Key: HIVE-11335 > URL: https://issues.apache.org/jira/browse/HIVE-11335 > Project: Hive > Issue Type: Bug > Components: Query Planning > Affects Versions: 1.1.0 > Environment: CDH5.4.0 > Reporter: fatkun > Attachments: query1.txt, query2.txt > > > test step > {code} > create table log (uid string, uid2 string); > insert into log values ('1', '1'); > create table user (uid string, name string); > insert into user values ('1', "test1"); > select b.name, c.name from log a > left outer join (select uid, name from user) b on (a.uid=3Db.uid) > left outer join user c on (a.uid2=3Dc.uid); > {code} > return wrong result=EF=BC=9A > 1=09test1 > It should be both return test1 > I try to find error, if I use this query, return right result.=EF=BC=88jo= in key different=EF=BC=89 > {code} > select b.name, c.name from log a > left outer join (select uid, name from user) b on (a.uid=3Db.uid) > left outer join user c on (a.uid=3Dc.uid); > {code} > The explain is different,Query1 only select one colum. It should select u= id and name. > {code} > b:user=20 > TableScan > alias: user > Statistics: Num rows: 1 Data size: 7 Basic stats: COMPLETE Co= lumn stats: NONE > Select Operator > expressions: uid (type: string) > outputColumnNames: _col0 > {code} > I think there is something wrong in ColumnPruner.But i cannot find it out= . > It may relate HIVE-10996 -- This message was sent by Atlassian JIRA (v6.3.4#6332)