Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C43871C1 for ; Fri, 9 Dec 2011 18:01:04 +0000 (UTC) Received: (qmail 14537 invoked by uid 500); 9 Dec 2011 18:01:04 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 14418 invoked by uid 500); 9 Dec 2011 18:01:04 -0000 Mailing-List: contact dev-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 dev@hive.apache.org Received: (qmail 14410 invoked by uid 500); 9 Dec 2011 18:01:04 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 14407 invoked by uid 99); 9 Dec 2011 18:01:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2011 18:01:04 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Dec 2011 18:01:02 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 51809109857 for ; Fri, 9 Dec 2011 18:00:41 +0000 (UTC) Date: Fri, 9 Dec 2011 18:00:41 +0000 (UTC) From: "Namit Jain (Updated) (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1088033880.59216.1323453641335.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <170736056.22448.1312188549756.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HIVE-2329) Not using map aggregation, fails to execute group-by after cluster-by with same key MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-2329?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Namit Jain updated HIVE-2329: ----------------------------- Resolution: Fixed Hadoop Flags: Reviewed Status: Resolved (was: Patch Available) Committed. Thanks Navis > Not using map aggregation, fails to execute group-by after cluster-by with same key > ----------------------------------------------------------------------------------- > > Key: HIVE-2329 > URL: https://issues.apache.org/jira/browse/HIVE-2329 > Project: Hive > Issue Type: Bug > Components: Query Processor > Reporter: Navis > Assignee: Navis > Priority: Minor > Fix For: 0.9.0 > > Attachments: HIVE-2329.1.patch.txt, HIVE-2329.D657.1.patch > > > hive.map.aggr=false > select Q1.key_int1, sum(Q1.key_int1), sum(distinct Q1.key_int1) from (select * from t1 cluster by key_int1) Q1 group by Q1.key_int1 > resulted.. > FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapRedTask > from hadoop logs.. > Caused by: java.lang.RuntimeException: cannot find field key from [] > at org.apache.hadoop.hive.serde2.objectinspector.ObjectInspectorUtils.getStandardStructFieldRef(ObjectInspectorUtils.java:321) > at org.apache.hadoop.hive.serde2.objectinspector.StandardStructObjectInspector.getStructFieldRef(StandardStructObjectInspector.java:119) > at org.apache.hadoop.hive.ql.exec.ExprNodeColumnEvaluator.initialize(ExprNodeColumnEvaluator.java:82) > at org.apache.hadoop.hive.ql.exec.GroupByOperator.initializeOp(GroupByOperator.java:198) > at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:357) > at org.apache.hadoop.hive.ql.exec.Operator.initialize(Operator.java:433) > ........ > I think the problem is caused by ReduceSinkDeDuplication, removing RS which was providing rs.key for GBY operation. If child of child RS is a GBY, we should bypass the optimization. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira