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

HOLD_DDLTIME does not change partition metadata

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.7.0
    • None
    • Query Processor
    • None

    Description

      create table T1 (key string, value string) partitioned by(ds string) stored as sequencefile;

      desc extended T1;

      insert overwrite table T1 partition (ds='1') select key, value from src;
      insert overwrite table T1 partition (ds='2') select key, value from src;

      desc extended T1 partition (ds='1');
      desc extended T1 partition (ds='2');

      alter table T1 set fileformat rcfile;

      insert overwrite table T1 partition (ds='1')
      select /+ HOLD_DDLTIME/ key, value from src;

      insert overwrite table T1 partition (ds='2')
      select key, value from src;

      desc extended T1 partition (ds='1');
      desc extended T1 partition (ds='2');

      drop table T1;

      T1/ds=1 is left as sequencefile and corrupted after the insert as HOLD_DDLTIME

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              namit Namit Jain
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: