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

ADD PARTITION should support setting FILEFORMAT and SERDEPROPERTIES

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Currently, ALTER TABLE ... ADD PARTITION only lets you set the partition's LOCATION but not its FILEFORMAT or SERDEPROPERTIES. In order to change the FILEFORMAT or SERDEPROPERTIES, you have to issue two additional calls to ALTER TABLE ... PARTITION ... SET FILEFORMAT and ALTER TABLE ... PARTITION ... SET SERDEPROPERTIES. This is not atomic, and queries that interleave the ALTER TABLE commands may fail.

      We should extend the grammar to support setting FILEFORMAT and SERDEPROPERTIES atomically as part of the ADD PARTITION command.

      Attachments

        1. HIVE-15411.1.patch
          34 kB
          Anthony Hsu

        Activity

          People

            erwaman Anthony Hsu
            erwaman Anthony Hsu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: