Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-13652

Import table change order of dynamic partitions

    XMLWordPrintableJSON

Details

    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.

      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

      Attachments

        1. ReplLoad_PartitionOrder_BeforeFix_Log.png
          597 kB
          Sankar Hariappan
        2. ReplLoad_PartitionOrder_AfterFix_Log.png
          590 kB
          Sankar Hariappan
        3. HIVE-13652.01.patch
          9 kB
          Sankar Hariappan

        Issue Links

          Activity

            People

              sankarh Sankar Hariappan
              luky Lukas Waldmann
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: