Skip to content

feat(rest): expose catalog labels on the loaded table and view - #2068

Open
laskoviymishka wants to merge 1 commit into
apache:mainfrom
laskoviymishka:labels-table-accessor
Open

laskoviymishka wants to merge 1 commit into
apache:mainfrom
laskoviymishka:labels-table-accessor

Conversation

@laskoviymishka

Copy link
Copy Markdown
Contributor

Thread the labels decoded from load responses onto the returned Table and View. Table gains a WithLabels option and a Labels() accessor; View gains a functional-options constructor with the same. LoadTable, RegisterTable, CreateTable, LoadView, RegisterView, CreateView, and UpdateView forward the response labels (viewResponse now decodes them too); the table commit path carries none and passes nil. Refresh re-hydrates labels from the reloaded table. Labels() returns nil when the catalog returned none, and labels are excluded from Table.Equals and View.Equals as transient state.

Thread the labels decoded from load responses onto the returned Table and
View. Table gains a WithLabels option and a Labels() accessor; View gains a
functional-options constructor with the same. LoadTable, RegisterTable,
CreateTable, LoadView, RegisterView, CreateView, and UpdateView forward the
response labels (viewResponse now decodes them too); the table commit path
carries none and passes nil. Refresh re-hydrates labels from the reloaded
table. Labels() returns nil when the catalog returned none, and labels are
excluded from Table.Equals and View.Equals as transient state.
@laskoviymishka
laskoviymishka marked this pull request as ready for review September 28, 2026 15:48

This branch has not been deployed

No deployments
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