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 7A71511E62 for ; Thu, 28 Aug 2014 06:02:04 +0000 (UTC) Received: (qmail 22428 invoked by uid 500); 28 Aug 2014 06:02:03 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 22367 invoked by uid 500); 28 Aug 2014 06:02:03 -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 22307 invoked by uid 500); 28 Aug 2014 06:02:03 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 22286 invoked by uid 99); 28 Aug 2014 06:02:03 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2014 06:02:03 +0000 Date: Thu, 28 Aug 2014 06:02:03 +0000 (UTC) From: "Chao (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-7870) Insert overwrite table query does not generate correct task plan 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/HIVE-7870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chao updated HIVE-7870: ----------------------- Status: Patch Available (was: Open) > Insert overwrite table query does not generate correct task plan > ---------------------------------------------------------------- > > Key: HIVE-7870 > URL: https://issues.apache.org/jira/browse/HIVE-7870 > Project: Hive > Issue Type: Sub-task > Components: Spark > Reporter: Na Yang > Assignee: Chao > Labels: Spark-M1 > Attachments: HIVE-7870.1-spark.patch > > > Insert overwrite table query does not generate correct task plan when hive.optimize.union.remove and hive.merge.sparkfiles properties are ON. > {noformat} > set hive.optimize.union.remove=true > set hive.merge.sparkfiles=true > insert overwrite table outputTbl1 > SELECT * FROM > ( > select key, 1 as values from inputTbl1 > union all > select * FROM ( > SELECT key, count(1) as values from inputTbl1 group by key > UNION ALL > SELECT key, 2 as values from inputTbl1 > ) a > )b; > select * from outputTbl1 order by key, values; > {noformat} > query result > {noformat} > 1 1 > 1 2 > 2 1 > 2 2 > 3 1 > 3 2 > 7 1 > 7 2 > 8 2 > 8 2 > 8 2 > {noformat} > expected result: > {noformat} > 1 1 > 1 1 > 1 2 > 2 1 > 2 1 > 2 2 > 3 1 > 3 1 > 3 2 > 7 1 > 7 1 > 7 2 > 8 1 > 8 1 > 8 2 > 8 2 > 8 2 > {noformat} > Move work is not working properly and some data are missing during move. -- This message was sent by Atlassian JIRA (v6.2#6252)