Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-627

Alter table add partition with LOCATION clause does not work as expected.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • Impala 1.1.1, Impala 1.2
    • Impala 1.2.1
    • None
    • None

    Description

      See this forum post:
      http://community.cloudera.com/t5/Interactive-Short-cycle-SQL/Impala-IMPALA-1-1-1-1-p0-17-does-not-insert-into-partition/m-p/2195#U2195

      Steps to repro:
      create table foo (i int) partitioned by (year string);
      alter table foo add partition (year='abcde') location '/test-warehouse/year_foo';
      insert into table foo partition(year='abcde') select int_col from functional.alltypestiny;

      In Hive the data is added to '/test-warehouse/year_foo'.
      In Impala the data is incorrectly added to '/test-warehouse/foo/year=abcde'

      I also couldn't find any tests covering this specific issue.

      Attachments

        Activity

          People

            lskuff Lenni Kuff
            alex.behm Alexander Behm
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: