Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-3938

Hive: Failure reading from a partition when a new column is added to the table after the partition creation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 1.4.0
    • Storage - Hive
    • None

    Description

      Repro:

      From Hive:

      CREATE TABLE kv(key INT, value STRING);
      LOAD DATA LOCAL INPATH '/Users/hadoop/apache-repos/hive-install/apache-hive-1.0.0-bin/examples/files/kv1.txt' INTO TABLE kv;
      CREATE TABLE kv_p(key INT, value STRING, part1 STRING);
      set hive.exec.dynamic.partition.mode=nonstrict;
      set hive.exec.max.dynamic.partitions=10000;
      set hive.exec.max.dynamic.partitions.pernode=10000;
      INSERT INTO TABLE kv_p PARTITION (part1) SELECT key, value, value as s FROM kv;
      
      ALTER TABLE kv_p ADD COLUMNS (newcol STRING);
      

      From Drill:

      USE hive;
      DESCRIBE kv_p;
      SELECT newcol FROM kv_p;
      throws column 'newcol' not found error in HiveRecordReader while selecting only the projected columns.
      

      Attachments

        Activity

          People

            vkorukanti Venki Korukanti
            vkorukanti Venki Korukanti
            Rahul Kumar Challapalli Rahul Kumar Challapalli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: