Skip to content

refactor(storage): let Iceberg identifiers address their tables collection - #909

Merged
Tr00d merged 1 commit into
masterfrom
refactor/iceberg-tables-path
Nov 26, 2026
Merged

Tr00d merged 1 commit into
masterfrom
refactor/iceberg-tables-path

Conversation

@Tr00d

@Tr00d Tr00d commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Summary

IcebergCatalog no 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. ListTablesAsync addresses it.
  • IcebergTable.CollectionPath (internal): the collection the table belongs to. CreateTableAsync posts to it, so the catalog no longer reaches through the table into its namespace.
  • IcebergTable.Path builds on CollectionPath.

Behavior

Unchanged. The create and list contract tests pin the same URLs and pass unmodified.

Tests

Tier Class Pins
Unit IcebergNamespaceTests TablesPath nests the tables collection under the escaped namespace
Unit IcebergTableTests CollectionPath is its namespace's tables collection
Contract CreateTable*, ListTables* unchanged request URLs

Changed-line coverage: 100% (5 lines). Mutation on IcebergNamespace.cs, IcebergTable.cs and IcebergCatalog.cs: 57/57 (55 killed, 2 timeouts on ConfigureAwait(false)), 0 survivors.

…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.
@Tr00d
Tr00d marked this pull request as ready for review November 26, 2026 10:47
@Tr00d
Tr00d merged commit 92250eb into master Nov 26, 2026
7 checks passed
@Tr00d
Tr00d deleted the refactor/iceberg-tables-path branch November 26, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant