Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-27233 Iceberg: BRANCH&TAG implementation on hive side
  3. HIVE-28274

Iceberg: Add support for 'If Not Exists' and 'or Replace' for Create Branch

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 4.1.0
    • None

    Description

      Add support forĀ 

      -- CREATE audit-branch at current snapshot with default retention if it doesn't exist.
      ALTER TABLE prod.db.sample CREATE BRANCH IF NOT EXISTS `audit-branch`
      
      -- CREATE audit-branch at current snapshot with default retention or REPLACE it if it already exists.
      ALTER TABLE prod.db.sample CREATE OR REPLACE BRANCH `audit-branch`

      Like Spark:

      https://iceberg.apache.org/docs/1.5.1/spark-ddl/#branching-and-tagging-ddl

      Attachments

        Issue Links

          Activity

            People

              ayushtkn Ayush Saxena
              ayushtkn Ayush Saxena
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: