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

ALTER TABLE STORED AS - change storage format and/or compression

    XMLWordPrintableJSON

Details

    Description

      Feature request to support rewriting a table into a different format or compression level via a single alter table statement:

      ALTER TABLE ... STORED AS... TBLPROPERTIES(...)

      Currently we create a new table of a different format and do

      INSERT OVERWRITE newtable SELECT * FROM oldtable

      but a colleague has just asked me why this can't be handled by a single alter statement via a tempory table replacement under the hood, which seems like a fair question.

      Best Regards,

      Hari Sekhon
      http://www.linkedin.com/in/harisekhon

      Attachments

        Activity

          People

            Unassigned Unassigned
            harisekhon Hari Sekhon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: