Return-Path: Delivered-To: apmail-hive-dev-archive@www.apache.org Received: (qmail 86809 invoked from network); 17 Feb 2011 06:39:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Feb 2011 06:39:50 -0000 Received: (qmail 81292 invoked by uid 500); 17 Feb 2011 06:39:50 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 81024 invoked by uid 500); 17 Feb 2011 06:39:48 -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 81013 invoked by uid 500); 17 Feb 2011 06:39:47 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 81010 invoked by uid 99); 17 Feb 2011 06:39:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Feb 2011 06:39:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_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; Thu, 17 Feb 2011 06:39:45 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5D9AF1AA7CC for ; Thu, 17 Feb 2011 06:39:24 +0000 (UTC) Date: Thu, 17 Feb 2011 06:39:24 +0000 (UTC) From: "Ted Xu (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <747137030.1954.1297924764380.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Created: (HIVE-1997) Map join followed by multi-table insert will generate duplicated result 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 Map join followed by multi-table insert will generate duplicated result ----------------------------------------------------------------------- Key: HIVE-1997 URL: https://issues.apache.org/jira/browse/HIVE-1997 Project: Hive Issue Type: Bug Reporter: Ted Xu Fix For: 0.7.0 Map join followed by multi-table insert will generate duplicated result, if the insert targets contain both direct insert (FileSinkOperator logic) and group by/distribute by (ReduceSinkOperator logic). The following query regenerate the case: {code} FROM (SELECT /*+ MAPJOIN(x) */ x.key as key1, x.value as value1, y.key as key2, y.value as value2 FROM src1 x JOIN src y ON (x.key = y.key)) subq INSERT OVERWRITE TABLE destpart PARTITION (ds='2010-12-12') SELECT key1, value1 INSERT OVERWRITE TABLE destpart PARTITION (ds='2010-12-13') SELECT key2, value2 GROUP BY key2, value2; {code} In that query above, records of table destpart(ds='2010-12-12') is duplicated. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira