Return-Path: Delivered-To: apmail-hadoop-hive-dev-archive@locus.apache.org Received: (qmail 59345 invoked from network); 13 Dec 2008 00:39:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2008 00:39:06 -0000 Received: (qmail 86581 invoked by uid 500); 13 Dec 2008 00:39:18 -0000 Delivered-To: apmail-hadoop-hive-dev-archive@hadoop.apache.org Received: (qmail 86544 invoked by uid 500); 13 Dec 2008 00:39:18 -0000 Mailing-List: contact hive-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hadoop.apache.org Delivered-To: mailing list hive-dev@hadoop.apache.org Received: (qmail 86533 invoked by uid 99); 13 Dec 2008 00:39:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Dec 2008 16:39:18 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Dec 2008 00:39:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 46E9E234C3BF for ; Fri, 12 Dec 2008 16:38:44 -0800 (PST) Message-ID: <1708393628.1229128724289.JavaMail.jira@brutus> Date: Fri, 12 Dec 2008 16:38:44 -0800 (PST) From: "Ashish Thusoo (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Commented: (HIVE-168) join on a subquery with a group by does not work In-Reply-To: <922986521.1229038184213.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12656212#action_12656212 ] Ashish Thusoo commented on HIVE-168: ------------------------------------ +1 looks good. > join on a subquery with a group by does not work > ------------------------------------------------ > > Key: HIVE-168 > URL: https://issues.apache.org/jira/browse/HIVE-168 > Project: Hadoop Hive > Issue Type: Bug > Components: Query Processor > Reporter: Namit Jain > Assignee: Namit Jain > Attachments: 168.patch, patch2, patch3 > > > SELECT a.key, a.value, b.key, b.value > FROM > ( > SELECT src1.key as key, count(src1.value) AS value FROM src src1 group by src1.key > ) a > FULL OUTER JOIN > ( > SELECT src2.key as key, count(distinct(src2.value)) AS value > FROM src1 src2 group by src2.key > ) b > ON (a.key = b.key); > does not generate the plan correctly -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.