wuwenchi opened a new pull request, #51727: URL: https://github.com/apache/doris/pull/51727
### What problem does this PR solve? Related Issue: #48285 Problem Summary: You can now create Iceberg branches and tags through Doris. ```sql -- branch alter table tb1 create branch b1; alter table tb1 create branch if not exists b1; alter table tb1 create or replace branch b1; alter table tb1 create or replace branch b1 AS OF VERSION <version>; alter table tb1 create or replace branch b1 AS OF VERSION <version> RETAIN 1 DAYS; -- CREATE b1 at snapshot 1234, retain b1 for 30 days, and retain the latest 30 days. The latest 3 snapshot snapshots, and 2 days worth of snapshots. alter table tb1 CREATE BRANCH b1 AS OF VERSION 1234 RETAIN 30 DAYS WITH SNAPSHOT RETENTION 3 SNAPSHOTS 2 DAYS; -- tag alter table tb1 create tag t1; alter table tb1 create tag if not eists t1; alter table tb1 create or replace tag t1; alter table tb1 create or replace tag t1 AS OF VERSION <version>; -- CREATE t1 at snapshot 1234 and retain it for 1 year. alter table tb1 create tag t1 AS OF VERSION 1234 RETAIN 365 DAYS ``` The supported time units include: DAYS, HOURS, MINUTES ### Release note None ### Check List (For Author) - Test <!-- At least one of them must be included. --> - [ ] Regression test - [x] Unit Test - [ ] Manual test (add detailed scripts or steps below) - [ ] No need to test or manual test. Explain why: - [ ] This is a refactor/code format and no logic has been changed. - [ ] Previous test can cover this change. - [ ] No code files have been changed. - [ ] Other reason <!-- Add your reason? --> - Behavior changed: - [ ] No. - [ ] Yes. <!-- Explain the behavior change --> - Does this need documentation? - [ ] No. - [ ] Yes. <!-- Add document PR link here. eg: https://github.com/apache/doris-website/pull/1214 --> ### Check List (For Reviewer who merge this PR) - [ ] Confirm the release note - [ ] Confirm test cases - [ ] Confirm document - [ ] Add branch pick label <!-- Add branch pick label that this PR should merge into --> -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org