Repository navigation
Conversation
Signed-off-by: Timothy Wang <[email protected]>
timothyw553
force-pushed
the
fix/validate-iceberg-metadata-location
branch
from
August 7, 2026 00:19
af57ad8 to
317501e
Compare
yili-db
reviewed
Aug 7, 2026
|
|
||
| private static final String TEST_BASE_PREFIX = "/v1/catalogs/" + TestUtils.CATALOG_NAME; | ||
| private static final String TEST_BASE_NON_PREFIX = "/v1"; | ||
| private static final String ICEBERG_TABLE_LOCATION = "/tmp/uniform_iceberg_table"; |
Collaborator
There was a problem hiding this comment.
Does it actually write anything out here? Prefer to use a @TempDir Path icebergTableLocation; instead.
yili-db
reviewed
Aug 7, 2026
yili-db
left a comment
Collaborator
There was a problem hiding this comment.
Mostly good. Just a nit
3 of 5 tasks
timothyw553
force-pushed
the
fix/validate-iceberg-metadata-location
branch
from
August 7, 2026 07:19
ba30458 to
317501e
Compare
Signed-off-by: Timothy Wang <[email protected]>
yili-db
approved these changes
Aug 7, 2026
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.
PR Checklist
docsis updatedDescription of changes
The server stores a location for each table. An Iceberg metadata file also contains a table location. These two locations should describe the same table before the server creates temporary storage credentials.
Before this change,
loadTabletrusted the location inside the metadata file. For example, the registered table could point to/tables/orderswhile the metadata file pointed to/tables/other. The server could then create credentials for/tables/other.This change compares the two normalized locations and rejects the request when they do not match. When they do match, credentials are created only for the registered table location.
The existing Iceberg table test now covers the mismatch case and checks that the request is rejected.
Tests:
sbt -batch "server/testOnly io.unitycatalog.server.service.IcebergRestCatalogTest"