The GitHub Actions job "cargo in /. - Update #1176061251" on 
iceberg-rust.git/main has failed.
Run started by GitHub user dependabot[bot] (triggered by dependabot[bot]).

Head commit for run:
9fa3776cbd73159809e1c91ea1904ff9449d7a3d / Christian <[email protected]>
fix: Keep snapshot log on replace (#1896)

## Which issue does this PR close?

Fixes remove_ref() to preserve snapshot log when removing MainBranch
reference during CREATE OR REPLACE TABLE operations. Previously cleared
entire snapshot history, causing testReplaceTableKeepsSnapshotLog RCK
test to fail.

Related Go Issue: https://github.com/apache/iceberg-go/pull/638

Java also does not clear the log:

https://github.com/apache/iceberg/blob/16e84356dae1975fa04d8c3ecce30a90df18ca9f/core/src/main/java/org/apache/iceberg/TableMetadata.java#L1342-L1352


## What changes are included in this PR?

- Do not clear `snapshot_log` if ref to `main` branch is removed

## Are these changes tested?

Yes

---------

Signed-off-by: Xuanwo <[email protected]>
Co-authored-by: Xuanwo <[email protected]>

Report URL: https://github.com/apache/iceberg-rust/actions/runs/20003871537

With regards,
GitHub Actions via GitBox

Reply via email to