Repository navigation
refactor(storage): let Iceberg identifiers address their tables collection - #909
Merged
Merged
Conversation
…ction Create and list no longer build the tables path by hand from the namespace: IcebergNamespace.TablesPath and IcebergTable.CollectionPath own it, and IcebergTable.Path builds on it. Internal only; wire behavior unchanged.
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.
Summary
IcebergCatalogno longer composes the tables collection path itself. Create and list asked the namespace for its path and appended/tables; the identifiers now own that path, following the Tell, Don't Ask refactor in #897.No capability change. Internal members only: no public API change.
Changes
IcebergNamespace.TablesPath(internal):namespaces/{ns}/tables.ListTablesAsyncaddresses it.IcebergTable.CollectionPath(internal): the collection the table belongs to.CreateTableAsyncposts to it, so the catalog no longer reaches through the table into its namespace.IcebergTable.Pathbuilds onCollectionPath.Behavior
Unchanged. The create and list contract tests pin the same URLs and pass unmodified.
Tests
IcebergNamespaceTestsTablesPathnests the tables collection under the escaped namespaceIcebergTableTestsCollectionPathis its namespace's tables collectionCreateTable*,ListTables*Changed-line coverage: 100% (5 lines). Mutation on
IcebergNamespace.cs,IcebergTable.csandIcebergCatalog.cs: 57/57 (55 killed, 2 timeouts onConfigureAwait(false)), 0 survivors.