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 7529E119C3 for ; Mon, 15 Sep 2014 18:59:34 +0000 (UTC) Received: (qmail 13928 invoked by uid 500); 15 Sep 2014 18:59:33 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 13848 invoked by uid 500); 15 Sep 2014 18:59:33 -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 13834 invoked by uid 500); 15 Sep 2014 18:59:33 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 13831 invoked by uid 99); 15 Sep 2014 18:59:33 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Sep 2014 18:59:33 +0000 Date: Mon, 15 Sep 2014 18:59:33 +0000 (UTC) From: "Chris Kudelka (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (HIVE-8068) Dynamic partition insert overwrite does not overwrite files, but instead appends file to partition 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-8068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Kudelka resolved HIVE-8068. --------------------------------- Resolution: Cannot Reproduce > Dynamic partition insert overwrite does not overwrite files, but instead appends file to partition > -------------------------------------------------------------------------------------------------- > > Key: HIVE-8068 > URL: https://issues.apache.org/jira/browse/HIVE-8068 > Project: Hive > Issue Type: Bug > Components: SQL > Affects Versions: 0.13.1 > Environment: Centos 6.2; Amazon S3 as DFS > Reporter: Chris Kudelka > > -- using a reference table `one_row` with contents: > ||dummy_field|| > |dummy_value| > -- create test table > create table if not exists test_table ( > line string > ) partitioned by ( > my_part string > ) > -- run first time > insert overwrite table test_table partition (my_part) select 'a', 'partVal' from one_row; > Partition test_db.test_table{my_part=partVal} stats: [numFiles=1, numRows=1, totalSize=10, rawDataSize=1] > -- run again > insert overwrite table test_table partition (my_part) select 'a', 'partVal' from one_row; > Partition test_db.test_table{my_part=partVal} stats: [numFiles=2, numRows=1, totalSize=20, rawDataSize=1] > select * from test_table where my_part = 'partVal'; > Expected result: > 1 row > Actual result: > 2 rows > ---- > -- compare to non-dynamic partition insert, which overwrites as expected > ---- > -- drop table and recreate with sme definition > insert overwrite table test_table partition (my_part='partVal') select 'a' from one_row; > Partition test_db.test_table{my_part=partVal} stats: [numFiles=1, numRows=1, totalSize=10, rawDataSize=1] > -- run again > insert overwrite table test_table partition (my_part='partVal') select 'a' from one_row; > Partition test_db.test_table{my_part=partVal} stats: [numFiles=1, numRows=1, totalSize=10, rawDataSize=1] > select * from test_table where my_part = 'partVal'; > Expected result: > 1 row > Actual result: > 1 row -- This message was sent by Atlassian JIRA (v6.3.4#6332)