[ 
https://issues.apache.org/jira/browse/HIVE-13652?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukas Waldmann updated HIVE-13652:
----------------------------------
    Description: 
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.
Exported table structure on hdfs keeps the original partition order 
../year/month/day while imported table has hdfs structure .../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

  was:
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.
Exported table structure on hdfs keeps the original partition order 
../year/month/day while imported table has hdfs structure .../day/month/year



> 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.
> Exported table structure on hdfs keeps the original partition order 
> ../year/month/day while imported table has hdfs structure .../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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to