Repository navigation
refactor(storage): build an Iceberg table identifier from its namespace - #903
Merged
Merged
Conversation
IcebergNamespace.Of("sales").Table("events") replaces
IcebergTable.Of(IcebergNamespace.Of("sales"), "events"). The namespace
builds its tables, and the params overload of IcebergNamespace.Of keeps a
two-argument IcebergTable factory from being unambiguous. Unshipped API only.
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
A caller builds an Iceberg table identifier from its namespace,
IcebergNamespace.Of("sales").Table("events"), instead ofIcebergTable.Of(IcebergNamespace.Of("sales"), "events").No capability change: this refines the identifier introduced with
storage.analytics.create_table(#895) and used byload_table(#897),table_exists(#899) anddelete_table(#900).Public API
A two-string
IcebergTable.Of("sales", "events")was rejected:IcebergNamespace.Of(params string[] levels)takes multi-level namespaces, so the extra string would be ambiguous between a level and the table name.IcebergTable.Ofis removed rather than kept besideTableso there is one way to build the identifier. Not breaking: neither member has shipped.Behavior
Unchanged.
Table(null)throwsArgumentNullException(name); a blank,.or..name still fails withArgumentExceptionwhen the path is built; the service validates the name.Deviations from supabase-js
None. supabase-js takes untyped
{ namespace: string[], name }objects.Tests
IcebergNamespaceTestsTablekeeps the namespace and name, rejects a null name, leaves a blank name to the serviceIcebergTableTestsTableCreateTable*,LoadTable*,TableExists*,DeleteTable*Changed-line coverage: 100% (2 lines). Mutation: 29/29 killed on
IcebergNamespace.csandIcebergTable.cs, 0 survivors.Notes
The open List and Update Iceberg Table branches switch to
.Table(...)when they merge master; their oldIcebergTable.Ofcalls stop compiling, so none can be missed.