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

partition wise metadata does not work for text files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.11.0
    • Query Processor
    • None
    • Reviewed

    Description

      The following test fails:

      set hive.input.format = org.apache.hadoop.hive.ql.io.CombineHiveInputFormat;

      – This tests that the schema can be changed for binary serde data
      create table partition_test_partitioned(key string, value string)
      partitioned by (dt string) stored as textfile;
      insert overwrite table partition_test_partitioned partition(dt='1')
      select * from src where key = 238;

      select * from partition_test_partitioned where dt is not null;
      select key+key, value from partition_test_partitioned where dt is not null;

      alter table partition_test_partitioned change key key int;

      select key+key, value from partition_test_partitioned where dt is not null;
      select * from partition_test_partitioned where dt is not null;

      It works fine for a RCFile

      Attachments

        1. hive.4272.2.patch-nohcat
          38 kB
          Namit Jain
        2. hive.4272.2.patch
          31 kB
          Namit Jain
        3. hive.4272.1.patch
          31 kB
          Namit Jain

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: