Biman54 commented on issue #13615:
URL: https://github.com/apache/iceberg/issues/13615#issuecomment-3096872563

   🔄 Renaming a Tag
   To rename a tag, you can follow these steps:
   
   Create a new tag at the current snapshot:
   
   sql
   Copy
   Edit
   ALTER TABLE prod.db.sample CREATE TAG new_tag;
   Drop the old tag:
   
   sql
   Copy
   Edit
   ALTER TABLE prod.db.sample DROP TAG old_tag;
   This process effectively "renames" the tag by creating a new one and 
removing the old one.
   
   🌿 Renaming a Branch
   Similarly, to rename a branch:
   
   Create a new branch at the current snapshot:
   
   sql
   Copy
   Edit
   ALTER TABLE prod.db.sample CREATE BRANCH new_branch;
   Drop the old branch:
   AWS Documentation
   +1
   Apache Iceberg
   +1
   
   sql
   Copy
   Edit
   ALTER TABLE prod.db.sample DROP BRANCH old_branch;
   This sequence creates a new branch and removes the old one, effectively 
renaming it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to