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

partition level properties honored if it exists

    XMLWordPrintableJSON

Details

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

    Description

      drop table partition_test_partitioned;

      create table partition_test_partitioned(key string, value string) partitioned by (dt string);

      alter table partition_test_partitioned set fileformat rcfile;
      insert overwrite table partition_test_partitioned partition(dt=101) select * from src1;
      show table extended like partition_test_partitioned partition(dt=101);

      alter table partition_test_partitioned set fileformat Sequencefile;
      insert overwrite table partition_test_partitioned partition(dt=102) select * from src1;
      show table extended like partition_test_partitioned partition(dt=102);

      insert overwrite table partition_test_partitioned partition(dt=101) select * from src1;
      show table extended like partition_test_partitioned partition(dt=101);

      drop table partition_test_partitioned;

      Partition (dt=101) still points to RCFile, since it was created as a RCFile

      Attachments

        1. hive.1354.1.patch
          17 kB
          Namit Jain

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: