lexluo09 opened a new issue, #6902:
URL: https://github.com/apache/iceberg/issues/6902

   ### Query engine
   
   Spark
   
   ### Question
   
   Does spark-iceberg support create or drop tag/branch
   1、create tag
   ALTER TABLE demo.nyc.taxis
   CREATE TAG historical_annual_snapshot
   AS OF VERSION 100
   RETAIN 12 MONTHS
   
   2、create branch
   ALTER TABLE demo.nyc.taxis
   CREATE BRANCH test_branch AS OF VERSION 100 WITH SNAPSHOT RETENTION 5 
SNAPSHOTS 7 DAYS
   RETAIN 12 MONTHS
   
   3、drop tag/branch
   ALTER TABLE table DROP {BRANCH | TAG} reference
   
   Does spark-iceberg support create or drop tag/branch
   1、create tag
   ALTER TABLE demo.nyc.taxis
   CREATE TAG historical_annual_snapshot
   AS OF VERSION 100
   RETAIN 12 MONTHS
   
   2、create branch
   ALTER TABLE demo.nyc.taxis
   CREATE BRANCH test_branch AS OF VERSION 100 WITH SNAPSHOT RETENTION 5 
SNAPSHOTS 7 DAYS
   RETAIN 12 MONTHS
   
   3、drop tag/branch
   ALTER TABLE table DROP {BRANCH | TAG} reference
   
   
   
   My operation failed !
   
   
![image](https://user-images.githubusercontent.com/39718951/220599587-c4eadc32-7c1f-4a84-87f9-922eac1a6f86.png)
   
   4、
   CALL demo.system.create_tag(table => 'demo.nyc.taxis', snapshot_id => 
7406989859988178505, tag_name => 'testTag');
   
   
![image](https://user-images.githubusercontent.com/39718951/220599826-5f5b8089-e413-4141-a9ac-e2efbd44a51d.png)
   
   
   
   
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to