REST catalog resets snapshot-logs when replacing tables as I filed
https://github.com/apache/iceberg/issues/11777.

The cause is `RESTSessionCatalog.Builder#replaceTransaction` calls
`TableMetadata#buildReplacement` which adds a `RemoveSnapshotRef` request,
and then REST `CatalogHandlers.commit` clears snapshot-logs during the
request processing.

I propose adding a new flag (e.g. boolean purge) to `RemoveSnapshotRef` so
the catalog can skip clearing snapshot-logs.
https://github.com/apache/iceberg/pull/11779 is the proposed change.

BR,
Yuya

Reply via email to