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

ALTER TABLE ... RENAME [OVERWRITE] [TO] to overwrite existing table

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.0, 1.2.0, 2.0.0, 2.1.0
    • None
    • Hive
    • None

    Description

      It would be great to Have in OVERWRITE option in Hive's rename command:

      ALTER TABLE ... RENAME [OVERWRITE] [TO] to overwrite existing table, if it exists.

      There are many commands like DROP TABLE IF EXISTS, LOAD DATA .. OVERWRITE that tell how to deal if table already exists.

      We currently have to check in our ETL pipelines (outside of Hive) if table already exists and call different actions depending on that result.

      It would simplify that logic quite a bit.

      Closest in functionaility I found in MySQL: http://bugs.mysql.com/bug.php?id=36271

      This is not a compatibility breaking change.

      Attachments

        Activity

          People

            Unassigned Unassigned
            Tagar Ruslan Dautkhanov
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: