Ayush Saxena created HIVE-28275:
-----------------------------------

             Summary: Iceberg: Add support for 'If Not Exists" and 'or Replace' 
for Create Tag 
                 Key: HIVE-28275
                 URL: https://issues.apache.org/jira/browse/HIVE-28275
             Project: Hive
          Issue Type: Sub-task
            Reporter: Ayush Saxena
            Assignee: Ayush Saxena


Add support for If not exists and Or Replace while creating Tags
{noformat}
-- 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`{noformat}
Like Spark:

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



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to