vinlee19 opened a new pull request, #56257:
URL: https://github.com/apache/doris/pull/56257

   ### What problem does this PR solve?
   
   This PR extends the OPTIMIZE TABLE framework introduced in #55679 by 
implementing additional Iceberg meta procedure actions. Building upon the 
foundation established for Iceberg
     table optimization, this enhancement adds critical snapshot management 
operations that enable more sophisticated Iceberg table maintenance workflows.
   
   
   #### New Iceberg Actions Implemented
   
   This PR introduces **5 new Iceberg meta procedure actions**:
   
     1. **`cherrypick_snapshot`** - Cherry-picks changes from a specific 
snapshot
     2. **`fast_forward`** - Fast-forwards one branch to match another branch's 
latest snapshot
     3. **`rollback_to_snapshot`** - Rolls back table to a specific snapshot
     4. **`rollback_to_timestamp`** - Rolls back table to a specific timestamp
     5. **`set_current_snapshot`** - Sets a specific snapshot as current
   
     #### Example Usage
     ```sql
     -- Cherry-pick changes from a snapshot
     OPTIMIZE TABLE iceberg_catalog.db.table
     PROPERTIES("action" = "cherrypick_snapshot", "snapshot_id" = "123456789");
   ```
   ```
     -- Fast-forward branch to match another branch
     OPTIMIZE TABLE iceberg_catalog.db.table
     PROPERTIES("action" = "fast_forward", "branch" = "feature", "to" = "main");
   ```
   ```
     -- Rollback to specific snapshot
     OPTIMIZE TABLE iceberg_catalog.db.table
     PROPERTIES("action" = "rollback_to_snapshot", "snapshot_id" = "987654321");
   ```
   
   Issue Number: close #xxx
   
   Related PR: #xxx
   
   Problem Summary:
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test <!-- At least one of them must be included. -->
       - [x] Regression test
       - [ ] Unit Test
       - [x] 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.
       - [x] 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

Reply via email to