Core: Discard changes when suppressing historical snapshots in CatalogHandlers - #17843
Open
ebyhr wants to merge 1 commit into
Open
Core: Discard changes when suppressing historical snapshots in CatalogHandlers#17843ebyhr wants to merge 1 commit into
ebyhr wants to merge 1 commit into
Conversation
ebyhr
commented
Aug 27, 2026
Member
- Fixes Core: Discard changes when suppressing historical snapshots in CatalogHandlers #17538
- Closes fix: discard changes when suppressing historical snapshots in CatalogHandlers #17539
- The PR doesn't have any test and no response for a while.
ebyhr
commented
Aug 27, 2026
| .build()) | ||
| .commit(); | ||
|
|
||
| Table refsTable = catalog.loadTable(TABLE); |
Member
Author
There was a problem hiding this comment.
This line throws an exception if we revert CatalogHandlers's change:
Cannot set metadata location with changes to table metadata: 1 changes
java.lang.IllegalArgumentException: Cannot set metadata location with changes to table metadata: 1 changes
at org.apache.iceberg.rest.ErrorHandlers$DefaultErrorHandler.accept(ErrorHandlers.java:339)
at org.apache.iceberg.rest.ErrorHandlers$TableErrorHandler.accept(ErrorHandlers.java:160)
at org.apache.iceberg.rest.ErrorHandlers$TableErrorHandler.accept(ErrorHandlers.java:142)
at org.apache.iceberg.rest.RESTCatalogAdapter.execute(RESTCatalogAdapter.java:649)
at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
at org.apache.iceberg.rest.RESTCatalogAdapter.execute(RESTCatalogAdapter.java:624)
at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
at org.apache.iceberg.rest.RESTCatalogAdapter.execute(RESTCatalogAdapter.java:613)
at org.apache.iceberg.rest.BaseHTTPClient.get(BaseHTTPClient.java:101)
at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
at org.apache.iceberg.rest.BaseHTTPClient.get(BaseHTTPClient.java:100)
at org.apache.iceberg.rest.RESTSessionCatalog.loadInternal(RESTSessionCatalog.java:453)
at org.apache.iceberg.rest.RESTSessionCatalog.loadTable(RESTSessionCatalog.java:483)
at org.apache.iceberg.catalog.BaseSessionCatalog$AsCatalog.loadTable(BaseSessionCatalog.java:105)
at org.apache.iceberg.rest.RESTCatalog.loadTable(RESTCatalog.java:124)
at org.apache.iceberg.rest.TestRESTCatalog.testTableSnapshotLoadingWithStatisticsOnHistoricalSnapshot(TestRESTCatalog.java:1187)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
anoopj
reviewed
Aug 27, 2026
anoopj
reviewed
Aug 27, 2026
anoopj
approved these changes
Aug 27, 2026
Contributor
|
Thanks for opening this @ebyhr ! After I went through the description and checked how |
uros-b
approved these changes
Aug 28, 2026
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.