Attila Turoczy created HIVE-28607:
-------------------------------------
Summary: Syntax sugar for Iceberg Branching
Key: HIVE-28607
URL: https://issues.apache.org/jira/browse/HIVE-28607
Project: Hive
Issue Type: New Feature
Security Level: Public (Viewable by anyone)
Components: Hive
Affects Versions: 4.0.1
Reporter: Attila Turoczy
In Hive we overuse the ALTER TABLE statement. Every special command starts with
ALTER TABLE. From useability perspective this could be challenging for a
regular.
For example:
h6. {color:#172b4d}Create branch:{color}
{code:java}
CREATE BRANCH audit_branch FROM audit;{code}
{color:#172b4d}From snapshot:{color}
{code:java}
CREATE BRANCH audit_branch FROM audit AS OF VERSION 1234;{code}
{color:#172b4d}** This could be complected.{color}
{color:#172b4d}Create tag:{color}
{code:java}
CREATE TAG historical_tag FROM audit.{code}
same as for AS OF
{{Drop branch:}}
{code:java}
DROP BRANCH audit_branch;{code}
{{Drop Tag:}}
{code:java}
DROP TAG audit_branch;{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)