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

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

    XMLWordPrintableJSON

Details

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

    Description

      Add support for If not exists and Or Replace while creating Tags

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

      Like Spark:

      https://iceberg.apache.org/docs/1.5.1/spark-ddl/#alter-table-create-branch

      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: