Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C7C992009C5 for ; Mon, 16 May 2016 21:07:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C64A0160131; Mon, 16 May 2016 19:07:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1C126160A19 for ; Mon, 16 May 2016 21:07:13 +0200 (CEST) Received: (qmail 1517 invoked by uid 500); 16 May 2016 19:07:13 -0000 Mailing-List: contact issues-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 issues@hive.apache.org Received: (qmail 1353 invoked by uid 99); 16 May 2016 19:07:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2016 19:07:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 007F72C1F6C for ; Mon, 16 May 2016 19:07:13 +0000 (UTC) Date: Mon, 16 May 2016 19:07:13 +0000 (UTC) From: "Sushanth Sowmyan (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-13652) Import table change order of dynamic partitions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 16 May 2016 19:07:14 -0000 [ https://issues.apache.org/jira/browse/HIVE-13652?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15285104#comment-15285104 ] Sushanth Sowmyan commented on HIVE-13652: ----------------------------------------- > In any case current behaviour is the worst possible as it leaves partitioning on "higher will" I laughed at this, and you're definitely right about this. The rest is merely context behind why this problem has not been tackled earlier (since we break it for some users at the very least), and honestly, if we don't tackle it now, we simply kick the ball further down the road, and it will need tackling one way or another, which we have been doing so far. > Import table change order of dynamic partitions > ----------------------------------------------- > > Key: HIVE-13652 > URL: https://issues.apache.org/jira/browse/HIVE-13652 > Project: Hive > Issue Type: Bug > Affects Versions: 1.2.0, 1.2.1 > Reporter: Lukas Waldmann > > Table with multiple dynamic partitions like year,month, day exported using "export table" command is imported (using "import table") such a way that order of partitions is changed to day, month, year. > Export DB: Hive 0.14 > Import DB: Hive 1.2.1000.2.4.0.0-169 > Tables created as: > create table T1 > ( ... ) PARTITIONED BY (period_year string, period_month string, period_day string) STORED AS ORC TBLPROPERTIES ("orc.compress"="SNAPPY"); > export command: > export table t1 to 'path' > import command: > import table t1 from 'path' > HDFS file structure on both original table location and export path keeps the original partition order ../year/month/day > HDFS file structure after import is .../day/month/year -- This message was sent by Atlassian JIRA (v6.3.4#6332)