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 115EF113A1 for ; Thu, 17 Jul 2014 22:12:06 +0000 (UTC) Received: (qmail 88002 invoked by uid 500); 17 Jul 2014 22:12:04 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 87924 invoked by uid 500); 17 Jul 2014 22:12: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 87911 invoked by uid 500); 17 Jul 2014 22:12:04 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 87905 invoked by uid 99); 17 Jul 2014 22:12:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jul 2014 22:12:04 +0000 Date: Thu, 17 Jul 2014 22:12:04 +0000 (UTC) From: "Johndee Burks (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HIVE-7441) Custom partition scheme gets rewritten with hive scheme upon concatenate MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Johndee Burks created HIVE-7441: ----------------------------------- Summary: Custom partition scheme gets rewritten with hive scheme upon concatenate Key: HIVE-7441 URL: https://issues.apache.org/jira/browse/HIVE-7441 Project: Hive Issue Type: Bug Components: CLI Affects Versions: 0.12.0, 0.11.0, 0.10.0 Environment: CDH4.5 and CDH5.0 Reporter: Johndee Burks Priority: Minor If I take a given data directories. The directories contain a data file that is rc format and only contains one character "1". {code} /j1/part1 /j1/part2 {code} Create the table over the directories using the following command: {code} create table j1 (a int) partitioned by (b string) stored as rcfile location '/j1' ; {code} I add these directories to a table for example j1 using the following commands: {code} alter table j1 add partition (b = 'part1') location '/j1/part1'; alter table j1 add partition (b = 'part2') location '/j1/part2'; {code} I then do the following command to the first partition: {code} alter table j1 partition (b = 'part1') concatenate; {code} Hive changes the partition location from on hdfs {code} /j1/part1 {code} to {code} /j1/b=part1 {code} However it does not update the partition location in the metastore and partition is then lost to the table. It is hard to find this out until you start querying your data and notice there is missing data. The table even still shows the partition when you do "show partitions". -- This message was sent by Atlassian JIRA (v6.2#6252)