[
https://issues.apache.org/jira/browse/HIVE-28274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ayush Saxena updated HIVE-28274:
--------------------------------
Summary: Iceberg: Add support for 'If Not Exists' and 'or Replace' for
Create Branch (was: Iceberg: Add support for 'If Not Exists" and 'or Replace'
for Create Branch)
> Iceberg: Add support for 'If Not Exists' and 'or Replace' for Create Branch
> ---------------------------------------------------------------------------
>
> Key: HIVE-28274
> URL: https://issues.apache.org/jira/browse/HIVE-28274
> Project: Hive
> Issue Type: Sub-task
> Reporter: Ayush Saxena
> Assignee: Ayush Saxena
> Priority: Major
>
> Add support forĀ
> {noformat}
> -- 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`{noformat}
> Like Spark:
> https://iceberg.apache.org/docs/1.5.1/spark-ddl/#branching-and-tagging-ddl
--
This message was sent by Atlassian Jira
(v8.20.10#820010)