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

Change in serdeproperties should update existing partitions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.7.0
    • None
    • Metastore, Query Processor
    • None

    Description

      If you do:

      create external table test_table (
      id int)
      partitioned by (day string)
      row format serde 'org.apache.hadoop.contrib.serde2.RegexSerDe'
      with serdeproperties (
      'input.regex' = '.* ([^ ]*)'
      );

      alter table test_table add partition (day='2011-09-01');

      alter table test_table set serdeproperties (
      'input.regex' = '(.*)'
      );

      alter table test_table add partition (day='2011-09-02');

      The first partition will still use the older regex and the new one will use the new regex. It would be great if the change in serdeproperties was applied to existing partitions too.

      Attachments

        Activity

          People

            Unassigned Unassigned
            brugidou Maxime Brugidou
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: