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

Load statements with incorrect order of partitions put input files to unreadable places

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.0
    • Component/s: Query Processor
    • Labels:
      None

      Description

      Load statements with incorrect order of partitions put input files to incorrect paths.

      CREATE TABLE test_parts (c1 string, c2 int) PARTITIONED BY (p1 string,p2 string);
      LOAD DATA LOCAL INPATH '/opt/hive/examples/files/kv1.txt' OVERWRITE INTO TABLE test_parts PARTITION (p2='p1', p1='p2')"
      

      The input file is located as below and the data is not readable.

      % find /user/hive/warehouse/test_parts/
      /user/hive/warehouse/test_parts/
      /user/hive/warehouse/test_parts//p1=p2
      /user/hive/warehouse/test_parts//p1=p2/p2=p1
      /user/hive/warehouse/test_parts//p2=p1
      /user/hive/warehouse/test_parts//p2=p1/p1=p2
      /user/hive/warehouse/test_parts//p2=p1/p1=p2/.kv1.txt.crc
      /user/hive/warehouse/test_parts//p2=p1/p1=p2/kv1.txt
      

        Attachments

        1. HIVE-6022.2.patch.txt
          6 kB
          Teruyoshi Zenmyo
        2. HIVE-6022.1.patch.txt
          5 kB
          Teruyoshi Zenmyo
        3. HIVE-6022.1.patch
          5 kB
          Xuefu Zhang

          Activity

            People

            • Assignee:
              tzenmyo Teruyoshi Zenmyo
              Reporter:
              tzenmyo Teruyoshi Zenmyo
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: