You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@polaris.apache.org by Andrei Tserakhau via dev <de...@polaris.apache.org> on 2026/10/11 10:26:02 UTC
[DISCUSS] IRC Labels in Polaris
Hi all,
Now that the IRC "labels" field has merged in Iceberg Spec ([0]) and the
Polaris Tag work is close ([1]), I'd like to open a thread on how Polaris
should support labels.
There are two ways Polaris could do labels:
A) Labels as a separate entity - their own definitions/store, parallel to
Tags.
B) Labels as a projection over Tags - read-only IRC view / projection of
the existing tag model.
I propose B. Tags already are the structured model: definitions,
assignments, allowed values, inheritance, reverse lookup. IRC labels are
designed as the flat read surface of such models (object-level key/values
plus per-field labels by field-id). A separate labels entity would
duplicate the tag model and create two sources of truth to reconcile; a
projection keeps one model with two surfaces, a structured authoring API
and an interoperable flat read field. Column identity already lines up:
Tags use the Iceberg field-id, and IRC labels fields are keyed by field-id.
Given B, a Polaris catalog plays two roles:
1. Producer. Polaris resolves a target's effective tags (inheritance
applied, closest-wins) and projects them into IRC labels on
loadTable/loadView. The Tag API stays the authoring/management surface and
labels is the read projection for IRC compliant engines.
2. Consumer. When Polaris federates a foreign IRC catalog, it reads that
catalog's labels and stores them as tags owned by the source catalog:
read-only in Polaris and clearly marked as foreign. A Polaris user cannot
edit them (they change only when Polaris re-syncs from the source) and they
stay separate from Polaris's own natively-authored tags. That is how a
foreign catalog's metadata becomes usable in Polaris without pretending it
is local.
Mostly I'd like the community read on whether projection-over-tags feels
right, and whether the producer/consumer split is worth keeping in mind in
the Tag design so the contract leaves room for it. Would like to hear if
this framing is wrong, or where a separate entity would actually serve
better.
Thanks,
Andrei
[0] IRC Labels spec PR - https://github.com/apache/iceberg/pull/15750
[1] Tags discussion thread -
https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
Re: [DISCUSS] IRC Labels in Polaris
Posted by Dmitri Bourlatchkov <di...@apache.org>.
Hi Andrei,
I'm coming late to this discussion, but I agree with option B (labels as
read-only projection over tag).
I think this reflects the current consensus.
Cheers,
Dmitri.
On Sun, Oct 11, 2026 at 6:26 AM Andrei Tserakhau via dev <
dev@polaris.apache.org> wrote:
> Hi all,
>
> Now that the IRC "labels" field has merged in Iceberg Spec ([0]) and the
> Polaris Tag work is close ([1]), I'd like to open a thread on how Polaris
> should support labels.
>
> There are two ways Polaris could do labels:
>
> A) Labels as a separate entity - their own definitions/store, parallel to
> Tags.
> B) Labels as a projection over Tags - read-only IRC view / projection of
> the existing tag model.
>
> I propose B. Tags already are the structured model: definitions,
> assignments, allowed values, inheritance, reverse lookup. IRC labels are
> designed as the flat read surface of such models (object-level key/values
> plus per-field labels by field-id). A separate labels entity would
> duplicate the tag model and create two sources of truth to reconcile; a
> projection keeps one model with two surfaces, a structured authoring API
> and an interoperable flat read field. Column identity already lines up:
> Tags use the Iceberg field-id, and IRC labels fields are keyed by field-id.
>
> Given B, a Polaris catalog plays two roles:
>
> 1. Producer. Polaris resolves a target's effective tags (inheritance
> applied, closest-wins) and projects them into IRC labels on
> loadTable/loadView. The Tag API stays the authoring/management surface and
> labels is the read projection for IRC compliant engines.
>
> 2. Consumer. When Polaris federates a foreign IRC catalog, it reads that
> catalog's labels and stores them as tags owned by the source catalog:
> read-only in Polaris and clearly marked as foreign. A Polaris user cannot
> edit them (they change only when Polaris re-syncs from the source) and they
> stay separate from Polaris's own natively-authored tags. That is how a
> foreign catalog's metadata becomes usable in Polaris without pretending it
> is local.
>
> Mostly I'd like the community read on whether projection-over-tags feels
> right, and whether the producer/consumer split is worth keeping in mind in
> the Tag design so the contract leaves room for it. Would like to hear if
> this framing is wrong, or where a separate entity would actually serve
> better.
>
> Thanks,
> Andrei
>
> [0] IRC Labels spec PR - https://github.com/apache/iceberg/pull/15750
> [1] Tags discussion thread -
> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
>
Re: [DISCUSS] IRC Labels in Polaris
Posted by Andrei Tserakhau via dev <de...@polaris.apache.org>.
Thanks Ej, Dmitrii,
+1 to Dmitrii's idea about having Tags api as Beta, merge and continue on
main.
That removes my concern about locking things in, so I don't need anything
extra in v1.
To cover other questions:
- Model: read-only, one-way sync. No write-through.
- Who needs origin: owners can add native Polaris tags to a federated
table, so one federated catalog can hold both native and imported tags. The
containing catalog alone doesn't tell them apart. A UI or audit tool that
separates the two is the consumer.
- Same-name coexistence: fine to drop. Namespacing foreign definitions per
source works.
- Allowed values: good point. Imported definitions can't have a fixed
allowed-values list, since values arrive from the source and can change on
each sync. They'd need a source-managed value mode. That belongs in the
federation design, we can design it's later once 5366 merged.
Thanks,
Andrei
On Fri, Oct 30, 2026 at 7:21 PM Dmitri Bourlatchkov <di...@apache.org>
wrote:
> Hi EJ, Andrei,
>
> I'd like to clarify two points:
>
> A) From what I understand, tag definitions live inside a catalog. A
> federated catalog has a Polaris Catalog entity in its own right. So, why do
> we need to track tags' origin?
>
> Are we planning to allow Polaris users to alter tag data imported from the
> federated catalog?... perhaps add new Polaris-specific tags to a Federated
> catalog?
>
> B) From my POV the bigger question about creating tags from federated
> labels is the enum value set. With native tags we know ahead of time all
> possible values. However, with Federated catalogs we do not know what
> values may exist until we sync. Moreover, each sync may bring new,
> previously unknown values. How can this play with Polaris Tag enums
> (CreateTagRequest.allowed-values in [5366])?
>
> WDYT?
>
> That said, from a practical perspective, IIRC the general practice in
> Polaris is to flag new APIs as "beta" to allow follow-up changes to be made
> without worrying about strict backward compatibility.
>
> Did we miss to label the Tags API as beta/experimental in [5366]?
>
> I'd propose accepting the current API shape as "beta", merging and
> continuing this discussion with respect to the code on `main`. If we have
> to alter the Tags API, I think it will be perfectly fine. We'll drop the
> "beta" label after the feature stabilizes. Can this work?
>
> Thanks,
> Dmitri.
>
> [5366] https://github.com/apache/polaris/pull/5366
>
>
>
>
> On Fri, Oct 30, 2026 at 1:51 PM EJ Wang <ej...@gmail.com>
> wrote:
>
> > Hi all,
> >
> > Thanks for the thorough discussion. I'm on board with labels as a
> read-only
> > projection over Tags, and with landing Tags first.
> >
> > On adding origin to the Tag contract before merge, I think a few
> > assumptions in the thread are implicit, and they lead to different
> designs.
> > I'd like to make them explicit and walk through this from first
> principles
> > (duplicated from my replies here:
> > https://github.com/apache/polaris/pull/5366#issuecomment-6529593730):
> >
> > 0. What is the federation model for tags? The thread seems to assume
> > foreign tags are read-only mirrors, synced one-way from the source
> (Andrei:
> > "A Polaris user cannot edit them (they change only when Polaris re-syncs
> > from the source)"). Is that agreed, or could federated tags ever be
> > writable, or written through to the source catalog? This changes what
> > origin means: in a write-through model it drives where writes go, not
> just
> > provenance on reads.
> >
> > 1. Given that model, does any client need origin at all? Under read-only
> > one-way sync, read-only enforcement, re-sync, authorization of imported
> > tags, and strict collision handling all look like things Polaris can do
> > server-side. JB noted provenance "stays available through the Tag API for
> > anyone who needs it". Could we name who that is, e.g. a
> governance/masking
> > engine, a UI, or a sync tool, and what it decides based on origin? If
> there
> > is no such consumer, origin can stay server-internal.
> >
> > 2. Even if one does, a generic native-vs-external flag isn't enough. The
> > thread consistently says foreign tags are "attributed to the source
> > catalog", and Yufei's point about "who is asserting it" needs a concrete
> > source, especially with Sung's "possibly others" as additional sources.
> So
> > origin would have to identify the specific source, e.g. {type, source}
> > where source references a Polaris entity (federated catalog/connection
> id)
> > rather than a mutable name. But if foreign tags only exist inside their
> own
> > federated catalog, isn't the containing catalog already that answer?
> >
> > 3. Even if origin names the source, is same-name native + foreign
> > coexistence on one table a real requirement? Andrei mentioned allowing
> it,
> > but with strict collisions that state would fail the load anyway.
> > Namespacing foreign definitions per source would avoid changing name
> > uniqueness and assignment identity.
> >
> > Unless we settle these before merge, I'd propose #5366 reserve only a
> > read-only, server-set origin {type, source}, with type always NATIVE and
> > source unset in v1, and defer identity/uniqueness changes to the
> federation
> > design.
> >
> > Thanks,
> > EJ
> >
> > On Thu, Oct 22, 2026 at 11:29 AM Andrei Tserakhau via dev <
> > dev@polaris.apache.org> wrote:
> >
> > > Hi Dmitri,
> > >
> > > Agreed, that makes sense. Tag assignments are keyed by the target's
> > entity
> > > ID (plus field ID for columns), so without mirrored table entities
> > there's
> > > nothing for imported tags to attach to. Gating federated tag import on
> > > ENABLE_SUB_CATALOG_RBAC_FOR_FEDERATED_CATALOGS looks like a reasonable
> > > approach
> > >
> > > When the flag is off, Polaris wouldn't import federated labels as tags.
> > > I'll capture this in the design next to the per-catalog suppress
> option.
> > >
> > > Thanks,
> > > Andrei
> > >
> > > On Thu, Oct 22, 2026 at 7:33 PM Dmitri Bourlatchkov <
> > > dmitri.bourlatchkov@gmail.com> wrote:
> > >
> > > > Hi Andrei,
> > > >
> > > > Thanks for the clarification about label import. I must have missed
> > that
> > > > we're going to create mirror Polaris entities for them.
> > > >
> > > > I think this approach will work fine. However, I think it still
> > requires
> > > > the ENABLE_SUB_CATALOG_RBAC_FOR_FEDERATED_CATALOGS flag to be set.
> > > > Otherwise, Polaris will not create mirror entities for tables
> > themselves.
> > > >
> > > > We may want to gate federated tag imports on that flag too. WDYT?
> > > >
> > > > Thanks,
> > > > Dmitri.
> > > >
> > > > On Thu, 22 Oct 2026 at 02:56, Andrei Tserakhau <
> > > > andrei.tserakhau@databricks.com> wrote:
> > > >
> > > >> Hi Dmitri,
> > > >>
> > > >> Thanks, that's a good point. I agree there's a skew if local tags
> are
> > > >> filtered per user while federated labels are forwarded based on the
> > > service
> > > >> identity.
> > > >>
> > > >> I'd see identity propagation as nice to have rather than required.
> It
> > > >> would remove the skew, but labels don't need to depend on it.
> > > >>
> > > >> The consumer role is close to the mirror approach used for tables.
> > > >> Foreign labels are imported as Polaris tags, attributed to the
> source
> > > and
> > > >> read-only. Once they're Polaris entities, the Polaris authorizer
> > decides
> > > >> who sees them. What we can't reproduce is the source's own per-user
> > > rules,
> > > >> because those don't travel over the wire. So in practice:
> > > >>
> > > >> - the federation service identity defines the maximum set Polaris
> can
> > > see;
> > > >> - Polaris permissions on the imported tags narrow it per user;
> > > >> - the per-catalog option to suppress federated labels covers
> > deployments
> > > >> where the service identity is too broad.
> > > >>
> > > >> That's the same trade-off federated tables have today, and I'll call
> > it
> > > >> out explicitly as a deployment consideration in the design. If
> > identity
> > > >> propagation lands in federation later, labels would just benefit
> from
> > > it.
> > > >>
> > > >> Thanks,
> > > >> Andrei
> > > >>
> > > >> On Thu, Oct 22, 2026 at 1:02 AM Dmitri Bourlatchkov <
> dimas@apache.org
> > >
> > > >> wrote:
> > > >>
> > > >>> Hi All,
> > > >>>
> > > >>> On permissions and federated catalogs: If we assume that tag/label
> > > >>> visibility is a product of authorization rules, then it will be
> > > critical to
> > > >>> propagate the client's identity to Federated catalogs, I think.
> > > >>>
> > > >>> Note that this is not how Federation currently works.
> > > >>>
> > > >>> If we filter local tags by local Authorizer decisions, but
> > > >>> forward Federated labels based on the service identity, it will
> > create
> > > an
> > > >>> authorization skew.
> > > >>>
> > > >>> A similar skew exists with vended credentials for federated tables.
> > > >>> However, for tables the recommendation currently is to create
> mirror
> > > >>> entities in Polaris [5528][5548], which subsequently allows
> > > Polaris-side
> > > >>> Authorization deciusions. (Note that the referenced Federation RBAC
> > doc
> > > >>> changes have not been released yet.)
> > > >>>
> > > >>> However, this does not seem to be possible with labels (due to
> > limited
> > > >>> provenance information, as discussed previously).
> > > >>>
> > > >>> Cheers,
> > > >>> Dmitri.
> > > >>>
> > > >>> [5528] https://github.com/apache/polaris/issues/5528
> > > >>>
> > > >>> [5548] https://github.com/apache/polaris/pull/5548
> > > >>>
> > > >>> On Mon, Oct 12, 2026 at 6:49 AM Andrei Tserakhau via dev <
> > > >>> dev@polaris.apache.org> wrote:
> > > >>>
> > > >>>> Hi JB,
> > > >>>>
> > > >>>> Thanks, good to keep the Glasgow conversation going. Glad we're
> > > aligned
> > > >>>> on
> > > >>>> opt B.
> > > >>>>
> > > >>>> On your questions:
> > > >>>>
> > > >>>> 1/ Permissions / leakage: I'd reuse the existing tag visibility
> > rules
> > > >>>> rather than add a label-specific privilege. On `loadTable` /
> > > `loadView`,
> > > >>>> labels would only include tags the caller is already allowed to
> see
> > > >>>> through
> > > >>>> the Tag API. Table access alone would not expose anything extra.
> > > >>>>
> > > >>>> 2/ Performance: Agreed, `loadTable` is too hot to resolve
> > inheritance
> > > on
> > > >>>> every call. I'd cache the effective tags per table, invalidate on
> > tag
> > > >>>> changes, then apply the caller-specific visibility filter on top.
> > That
> > > >>>> should keep the added cost small.
> > > >>>>
> > > >>>> 3/ Default vs gated: I'd gate it initially with something like
> > > >>>> `polaris.label.enabled` per catalog, default off. We can move
> toward
> > > >>>> on-by-default later once the behavior and cost are proven.
> > > >>>>
> > > >>>> Best,
> > > >>>> Andrei
> > > >>>>
> > > >>>> On Mon, Oct 12, 2026 at 9:43 AM Jean-Baptiste Onofré <
> > jb@nanthrax.net
> > > >
> > > >>>> wrote:
> > > >>>>
> > > >>>> > Hi Andrei
> > > >>>> >
> > > >>>> > Thanks for starting this thread after our discussion during
> > > Lakehouse
> > > >>>> > Day/CommunityOverCode in Glasgow.
> > > >>>> >
> > > >>>> > I'm +1 to option B (labels as a read-only projection over tags).
> > > Tags
> > > >>>> > already have definitions, allowed values, inheritance and
> reverse
> > > >>>> lookup,
> > > >>>> > and both models are keyed by Iceberg field-id. A separate labels
> > > >>>> entity
> > > >>>> > would give us two source of truth to reconcile, with no benefit
> > > imho.
> > > >>>> >
> > > >>>> > The tag work isn't merged yet, so it's cheap (good timing :)) to
> > > >>>> reserve
> > > >>>> > what the consumer role needs. Postponing this later would be
> much
> > > more
> > > >>>> > painful. I would keep the actual federation impl out of the
> first
> > > tag
> > > >>>> PR.
> > > >>>> >
> > > >>>> > About collisions, "native wins" is reasonable. Polaris is the
> > > >>>> asserting
> > > >>>> > catalog at the point of access, so I'm fine with that rule.
> > > >>>> >
> > > >>>> > I have a few questions:
> > > >>>> > - We have to be careful that tag-definition visibility
> > (permission)
> > > >>>> > doesn't leak through labels. Do we plan to see labels on
> > > >>>> loadTable/loadView
> > > >>>> > relying on the table read privileges? Or do we want specific
> > > >>>> privileges for
> > > >>>> > label/tag?
> > > >>>> > - Resolving tags with inheritence on every loadTable can be
> > > >>>> significant
> > > >>>> > for performence. What are your thoughts about that? Opt caching?
> > > >>>> > - Do we want to have label emitted by default, or do you want to
> > > >>>> guate by
> > > >>>> > catalog configuration (polaris.label.enabled=on)?
> > > >>>> >
> > > >>>> > Thanks!
> > > >>>> > Regards
> > > >>>> > JB
> > > >>>> >
> > > >>>> > On Sun, Oct 11, 2026 at 11:26 AM Andrei Tserakhau via dev <
> > > >>>> > dev@polaris.apache.org> wrote:
> > > >>>> >
> > > >>>> >> Hi all,
> > > >>>> >>
> > > >>>> >> Now that the IRC "labels" field has merged in Iceberg Spec
> ([0])
> > > and
> > > >>>> the
> > > >>>> >> Polaris Tag work is close ([1]), I'd like to open a thread on
> how
> > > >>>> Polaris
> > > >>>> >> should support labels.
> > > >>>> >>
> > > >>>> >> There are two ways Polaris could do labels:
> > > >>>> >>
> > > >>>> >> A) Labels as a separate entity - their own definitions/store,
> > > >>>> parallel to
> > > >>>> >> Tags.
> > > >>>> >> B) Labels as a projection over Tags - read-only IRC view /
> > > >>>> projection of
> > > >>>> >> the existing tag model.
> > > >>>> >>
> > > >>>> >> I propose B. Tags already are the structured model:
> definitions,
> > > >>>> >> assignments, allowed values, inheritance, reverse lookup. IRC
> > > labels
> > > >>>> are
> > > >>>> >> designed as the flat read surface of such models (object-level
> > > >>>> key/values
> > > >>>> >> plus per-field labels by field-id). A separate labels entity
> > would
> > > >>>> >> duplicate the tag model and create two sources of truth to
> > > >>>> reconcile; a
> > > >>>> >> projection keeps one model with two surfaces, a structured
> > > >>>> authoring API
> > > >>>> >> and an interoperable flat read field. Column identity already
> > lines
> > > >>>> up:
> > > >>>> >> Tags use the Iceberg field-id, and IRC labels fields are keyed
> by
> > > >>>> >> field-id.
> > > >>>> >>
> > > >>>> >> Given B, a Polaris catalog plays two roles:
> > > >>>> >>
> > > >>>> >> 1. Producer. Polaris resolves a target's effective tags
> > > (inheritance
> > > >>>> >> applied, closest-wins) and projects them into IRC labels on
> > > >>>> >> loadTable/loadView. The Tag API stays the authoring/management
> > > >>>> surface and
> > > >>>> >> labels is the read projection for IRC compliant engines.
> > > >>>> >>
> > > >>>> >> 2. Consumer. When Polaris federates a foreign IRC catalog, it
> > reads
> > > >>>> that
> > > >>>> >> catalog's labels and stores them as tags owned by the source
> > > catalog:
> > > >>>> >> read-only in Polaris and clearly marked as foreign. A Polaris
> > user
> > > >>>> cannot
> > > >>>> >> edit them (they change only when Polaris re-syncs from the
> > source)
> > > >>>> and
> > > >>>> >> they
> > > >>>> >> stay separate from Polaris's own natively-authored tags. That
> is
> > > how
> > > >>>> a
> > > >>>> >> foreign catalog's metadata becomes usable in Polaris without
> > > >>>> pretending it
> > > >>>> >> is local.
> > > >>>> >>
> > > >>>> >> Mostly I'd like the community read on whether
> > projection-over-tags
> > > >>>> feels
> > > >>>> >> right, and whether the producer/consumer split is worth keeping
> > in
> > > >>>> mind in
> > > >>>> >> the Tag design so the contract leaves room for it. Would like
> to
> > > >>>> hear if
> > > >>>> >> this framing is wrong, or where a separate entity would
> actually
> > > >>>> serve
> > > >>>> >> better.
> > > >>>> >>
> > > >>>> >> Thanks,
> > > >>>> >> Andrei
> > > >>>> >>
> > > >>>> >> [0] IRC Labels spec PR -
> > > >>>> https://github.com/apache/iceberg/pull/15750
> > > >>>> >> [1] Tags discussion thread -
> > > >>>> >>
> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
> > > >>>> >>
> > > >>>> >
> > > >>>>
> > > >>>
> > > >>>
> > > >>> --
> > > >>> Dmitri Bourlatchkov
> > > >>> Senior Staff Software Engineer, Dremio
> > > >>> Dremio.com
> > > >>> <
> > >
> >
> https://www.dremio.com/?utm_medium=email&utm_source=signature&utm_term=na&utm_content=email-signature&utm_campaign=email-signature
> > >
> > > /
> > > >>> Follow Us on LinkedIn <https://www.linkedin.com/company/dremio> /
> > Get
> > > >>> Started <https://www.dremio.com/get-started/>
> > > >>>
> > > >>>
> > > >>> The Agentic Lakehouse
> > > >>> The only lakehouse built for agents, managed by agents
> > > >>>
> > > >>>
> > > >>>
> > >
> >
>
Re: [DISCUSS] IRC Labels in Polaris
Posted by Dmitri Bourlatchkov <di...@apache.org>.
Hi EJ, Andrei,
I'd like to clarify two points:
A) From what I understand, tag definitions live inside a catalog. A
federated catalog has a Polaris Catalog entity in its own right. So, why do
we need to track tags' origin?
Are we planning to allow Polaris users to alter tag data imported from the
federated catalog?... perhaps add new Polaris-specific tags to a Federated
catalog?
B) From my POV the bigger question about creating tags from federated
labels is the enum value set. With native tags we know ahead of time all
possible values. However, with Federated catalogs we do not know what
values may exist until we sync. Moreover, each sync may bring new,
previously unknown values. How can this play with Polaris Tag enums
(CreateTagRequest.allowed-values in [5366])?
WDYT?
That said, from a practical perspective, IIRC the general practice in
Polaris is to flag new APIs as "beta" to allow follow-up changes to be made
without worrying about strict backward compatibility.
Did we miss to label the Tags API as beta/experimental in [5366]?
I'd propose accepting the current API shape as "beta", merging and
continuing this discussion with respect to the code on `main`. If we have
to alter the Tags API, I think it will be perfectly fine. We'll drop the
"beta" label after the feature stabilizes. Can this work?
Thanks,
Dmitri.
[5366] https://github.com/apache/polaris/pull/5366
On Fri, Oct 30, 2026 at 1:51 PM EJ Wang <ej...@gmail.com>
wrote:
> Hi all,
>
> Thanks for the thorough discussion. I'm on board with labels as a read-only
> projection over Tags, and with landing Tags first.
>
> On adding origin to the Tag contract before merge, I think a few
> assumptions in the thread are implicit, and they lead to different designs.
> I'd like to make them explicit and walk through this from first principles
> (duplicated from my replies here:
> https://github.com/apache/polaris/pull/5366#issuecomment-6529593730):
>
> 0. What is the federation model for tags? The thread seems to assume
> foreign tags are read-only mirrors, synced one-way from the source (Andrei:
> "A Polaris user cannot edit them (they change only when Polaris re-syncs
> from the source)"). Is that agreed, or could federated tags ever be
> writable, or written through to the source catalog? This changes what
> origin means: in a write-through model it drives where writes go, not just
> provenance on reads.
>
> 1. Given that model, does any client need origin at all? Under read-only
> one-way sync, read-only enforcement, re-sync, authorization of imported
> tags, and strict collision handling all look like things Polaris can do
> server-side. JB noted provenance "stays available through the Tag API for
> anyone who needs it". Could we name who that is, e.g. a governance/masking
> engine, a UI, or a sync tool, and what it decides based on origin? If there
> is no such consumer, origin can stay server-internal.
>
> 2. Even if one does, a generic native-vs-external flag isn't enough. The
> thread consistently says foreign tags are "attributed to the source
> catalog", and Yufei's point about "who is asserting it" needs a concrete
> source, especially with Sung's "possibly others" as additional sources. So
> origin would have to identify the specific source, e.g. {type, source}
> where source references a Polaris entity (federated catalog/connection id)
> rather than a mutable name. But if foreign tags only exist inside their own
> federated catalog, isn't the containing catalog already that answer?
>
> 3. Even if origin names the source, is same-name native + foreign
> coexistence on one table a real requirement? Andrei mentioned allowing it,
> but with strict collisions that state would fail the load anyway.
> Namespacing foreign definitions per source would avoid changing name
> uniqueness and assignment identity.
>
> Unless we settle these before merge, I'd propose #5366 reserve only a
> read-only, server-set origin {type, source}, with type always NATIVE and
> source unset in v1, and defer identity/uniqueness changes to the federation
> design.
>
> Thanks,
> EJ
>
> On Thu, Oct 22, 2026 at 11:29 AM Andrei Tserakhau via dev <
> dev@polaris.apache.org> wrote:
>
> > Hi Dmitri,
> >
> > Agreed, that makes sense. Tag assignments are keyed by the target's
> entity
> > ID (plus field ID for columns), so without mirrored table entities
> there's
> > nothing for imported tags to attach to. Gating federated tag import on
> > ENABLE_SUB_CATALOG_RBAC_FOR_FEDERATED_CATALOGS looks like a reasonable
> > approach
> >
> > When the flag is off, Polaris wouldn't import federated labels as tags.
> > I'll capture this in the design next to the per-catalog suppress option.
> >
> > Thanks,
> > Andrei
> >
> > On Thu, Oct 22, 2026 at 7:33 PM Dmitri Bourlatchkov <
> > dmitri.bourlatchkov@gmail.com> wrote:
> >
> > > Hi Andrei,
> > >
> > > Thanks for the clarification about label import. I must have missed
> that
> > > we're going to create mirror Polaris entities for them.
> > >
> > > I think this approach will work fine. However, I think it still
> requires
> > > the ENABLE_SUB_CATALOG_RBAC_FOR_FEDERATED_CATALOGS flag to be set.
> > > Otherwise, Polaris will not create mirror entities for tables
> themselves.
> > >
> > > We may want to gate federated tag imports on that flag too. WDYT?
> > >
> > > Thanks,
> > > Dmitri.
> > >
> > > On Thu, 22 Oct 2026 at 02:56, Andrei Tserakhau <
> > > andrei.tserakhau@databricks.com> wrote:
> > >
> > >> Hi Dmitri,
> > >>
> > >> Thanks, that's a good point. I agree there's a skew if local tags are
> > >> filtered per user while federated labels are forwarded based on the
> > service
> > >> identity.
> > >>
> > >> I'd see identity propagation as nice to have rather than required. It
> > >> would remove the skew, but labels don't need to depend on it.
> > >>
> > >> The consumer role is close to the mirror approach used for tables.
> > >> Foreign labels are imported as Polaris tags, attributed to the source
> > and
> > >> read-only. Once they're Polaris entities, the Polaris authorizer
> decides
> > >> who sees them. What we can't reproduce is the source's own per-user
> > rules,
> > >> because those don't travel over the wire. So in practice:
> > >>
> > >> - the federation service identity defines the maximum set Polaris can
> > see;
> > >> - Polaris permissions on the imported tags narrow it per user;
> > >> - the per-catalog option to suppress federated labels covers
> deployments
> > >> where the service identity is too broad.
> > >>
> > >> That's the same trade-off federated tables have today, and I'll call
> it
> > >> out explicitly as a deployment consideration in the design. If
> identity
> > >> propagation lands in federation later, labels would just benefit from
> > it.
> > >>
> > >> Thanks,
> > >> Andrei
> > >>
> > >> On Thu, Oct 22, 2026 at 1:02 AM Dmitri Bourlatchkov <dimas@apache.org
> >
> > >> wrote:
> > >>
> > >>> Hi All,
> > >>>
> > >>> On permissions and federated catalogs: If we assume that tag/label
> > >>> visibility is a product of authorization rules, then it will be
> > critical to
> > >>> propagate the client's identity to Federated catalogs, I think.
> > >>>
> > >>> Note that this is not how Federation currently works.
> > >>>
> > >>> If we filter local tags by local Authorizer decisions, but
> > >>> forward Federated labels based on the service identity, it will
> create
> > an
> > >>> authorization skew.
> > >>>
> > >>> A similar skew exists with vended credentials for federated tables.
> > >>> However, for tables the recommendation currently is to create mirror
> > >>> entities in Polaris [5528][5548], which subsequently allows
> > Polaris-side
> > >>> Authorization deciusions. (Note that the referenced Federation RBAC
> doc
> > >>> changes have not been released yet.)
> > >>>
> > >>> However, this does not seem to be possible with labels (due to
> limited
> > >>> provenance information, as discussed previously).
> > >>>
> > >>> Cheers,
> > >>> Dmitri.
> > >>>
> > >>> [5528] https://github.com/apache/polaris/issues/5528
> > >>>
> > >>> [5548] https://github.com/apache/polaris/pull/5548
> > >>>
> > >>> On Mon, Oct 12, 2026 at 6:49 AM Andrei Tserakhau via dev <
> > >>> dev@polaris.apache.org> wrote:
> > >>>
> > >>>> Hi JB,
> > >>>>
> > >>>> Thanks, good to keep the Glasgow conversation going. Glad we're
> > aligned
> > >>>> on
> > >>>> opt B.
> > >>>>
> > >>>> On your questions:
> > >>>>
> > >>>> 1/ Permissions / leakage: I'd reuse the existing tag visibility
> rules
> > >>>> rather than add a label-specific privilege. On `loadTable` /
> > `loadView`,
> > >>>> labels would only include tags the caller is already allowed to see
> > >>>> through
> > >>>> the Tag API. Table access alone would not expose anything extra.
> > >>>>
> > >>>> 2/ Performance: Agreed, `loadTable` is too hot to resolve
> inheritance
> > on
> > >>>> every call. I'd cache the effective tags per table, invalidate on
> tag
> > >>>> changes, then apply the caller-specific visibility filter on top.
> That
> > >>>> should keep the added cost small.
> > >>>>
> > >>>> 3/ Default vs gated: I'd gate it initially with something like
> > >>>> `polaris.label.enabled` per catalog, default off. We can move toward
> > >>>> on-by-default later once the behavior and cost are proven.
> > >>>>
> > >>>> Best,
> > >>>> Andrei
> > >>>>
> > >>>> On Mon, Oct 12, 2026 at 9:43 AM Jean-Baptiste Onofré <
> jb@nanthrax.net
> > >
> > >>>> wrote:
> > >>>>
> > >>>> > Hi Andrei
> > >>>> >
> > >>>> > Thanks for starting this thread after our discussion during
> > Lakehouse
> > >>>> > Day/CommunityOverCode in Glasgow.
> > >>>> >
> > >>>> > I'm +1 to option B (labels as a read-only projection over tags).
> > Tags
> > >>>> > already have definitions, allowed values, inheritance and reverse
> > >>>> lookup,
> > >>>> > and both models are keyed by Iceberg field-id. A separate labels
> > >>>> entity
> > >>>> > would give us two source of truth to reconcile, with no benefit
> > imho.
> > >>>> >
> > >>>> > The tag work isn't merged yet, so it's cheap (good timing :)) to
> > >>>> reserve
> > >>>> > what the consumer role needs. Postponing this later would be much
> > more
> > >>>> > painful. I would keep the actual federation impl out of the first
> > tag
> > >>>> PR.
> > >>>> >
> > >>>> > About collisions, "native wins" is reasonable. Polaris is the
> > >>>> asserting
> > >>>> > catalog at the point of access, so I'm fine with that rule.
> > >>>> >
> > >>>> > I have a few questions:
> > >>>> > - We have to be careful that tag-definition visibility
> (permission)
> > >>>> > doesn't leak through labels. Do we plan to see labels on
> > >>>> loadTable/loadView
> > >>>> > relying on the table read privileges? Or do we want specific
> > >>>> privileges for
> > >>>> > label/tag?
> > >>>> > - Resolving tags with inheritence on every loadTable can be
> > >>>> significant
> > >>>> > for performence. What are your thoughts about that? Opt caching?
> > >>>> > - Do we want to have label emitted by default, or do you want to
> > >>>> guate by
> > >>>> > catalog configuration (polaris.label.enabled=on)?
> > >>>> >
> > >>>> > Thanks!
> > >>>> > Regards
> > >>>> > JB
> > >>>> >
> > >>>> > On Sun, Oct 11, 2026 at 11:26 AM Andrei Tserakhau via dev <
> > >>>> > dev@polaris.apache.org> wrote:
> > >>>> >
> > >>>> >> Hi all,
> > >>>> >>
> > >>>> >> Now that the IRC "labels" field has merged in Iceberg Spec ([0])
> > and
> > >>>> the
> > >>>> >> Polaris Tag work is close ([1]), I'd like to open a thread on how
> > >>>> Polaris
> > >>>> >> should support labels.
> > >>>> >>
> > >>>> >> There are two ways Polaris could do labels:
> > >>>> >>
> > >>>> >> A) Labels as a separate entity - their own definitions/store,
> > >>>> parallel to
> > >>>> >> Tags.
> > >>>> >> B) Labels as a projection over Tags - read-only IRC view /
> > >>>> projection of
> > >>>> >> the existing tag model.
> > >>>> >>
> > >>>> >> I propose B. Tags already are the structured model: definitions,
> > >>>> >> assignments, allowed values, inheritance, reverse lookup. IRC
> > labels
> > >>>> are
> > >>>> >> designed as the flat read surface of such models (object-level
> > >>>> key/values
> > >>>> >> plus per-field labels by field-id). A separate labels entity
> would
> > >>>> >> duplicate the tag model and create two sources of truth to
> > >>>> reconcile; a
> > >>>> >> projection keeps one model with two surfaces, a structured
> > >>>> authoring API
> > >>>> >> and an interoperable flat read field. Column identity already
> lines
> > >>>> up:
> > >>>> >> Tags use the Iceberg field-id, and IRC labels fields are keyed by
> > >>>> >> field-id.
> > >>>> >>
> > >>>> >> Given B, a Polaris catalog plays two roles:
> > >>>> >>
> > >>>> >> 1. Producer. Polaris resolves a target's effective tags
> > (inheritance
> > >>>> >> applied, closest-wins) and projects them into IRC labels on
> > >>>> >> loadTable/loadView. The Tag API stays the authoring/management
> > >>>> surface and
> > >>>> >> labels is the read projection for IRC compliant engines.
> > >>>> >>
> > >>>> >> 2. Consumer. When Polaris federates a foreign IRC catalog, it
> reads
> > >>>> that
> > >>>> >> catalog's labels and stores them as tags owned by the source
> > catalog:
> > >>>> >> read-only in Polaris and clearly marked as foreign. A Polaris
> user
> > >>>> cannot
> > >>>> >> edit them (they change only when Polaris re-syncs from the
> source)
> > >>>> and
> > >>>> >> they
> > >>>> >> stay separate from Polaris's own natively-authored tags. That is
> > how
> > >>>> a
> > >>>> >> foreign catalog's metadata becomes usable in Polaris without
> > >>>> pretending it
> > >>>> >> is local.
> > >>>> >>
> > >>>> >> Mostly I'd like the community read on whether
> projection-over-tags
> > >>>> feels
> > >>>> >> right, and whether the producer/consumer split is worth keeping
> in
> > >>>> mind in
> > >>>> >> the Tag design so the contract leaves room for it. Would like to
> > >>>> hear if
> > >>>> >> this framing is wrong, or where a separate entity would actually
> > >>>> serve
> > >>>> >> better.
> > >>>> >>
> > >>>> >> Thanks,
> > >>>> >> Andrei
> > >>>> >>
> > >>>> >> [0] IRC Labels spec PR -
> > >>>> https://github.com/apache/iceberg/pull/15750
> > >>>> >> [1] Tags discussion thread -
> > >>>> >> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
> > >>>> >>
> > >>>> >
> > >>>>
> > >>>
> > >>>
> > >>> --
> > >>> Dmitri Bourlatchkov
> > >>> Senior Staff Software Engineer, Dremio
> > >>> Dremio.com
> > >>> <
> >
> https://www.dremio.com/?utm_medium=email&utm_source=signature&utm_term=na&utm_content=email-signature&utm_campaign=email-signature
> >
> > /
> > >>> Follow Us on LinkedIn <https://www.linkedin.com/company/dremio> /
> Get
> > >>> Started <https://www.dremio.com/get-started/>
> > >>>
> > >>>
> > >>> The Agentic Lakehouse
> > >>> The only lakehouse built for agents, managed by agents
> > >>>
> > >>>
> > >>>
> >
>
Re: [DISCUSS] IRC Labels in Polaris
Posted by EJ Wang <ej...@gmail.com>.
Hi all,
Thanks for the thorough discussion. I'm on board with labels as a read-only
projection over Tags, and with landing Tags first.
On adding origin to the Tag contract before merge, I think a few
assumptions in the thread are implicit, and they lead to different designs.
I'd like to make them explicit and walk through this from first principles
(duplicated from my replies here:
https://github.com/apache/polaris/pull/5366#issuecomment-6529593730):
0. What is the federation model for tags? The thread seems to assume
foreign tags are read-only mirrors, synced one-way from the source (Andrei:
"A Polaris user cannot edit them (they change only when Polaris re-syncs
from the source)"). Is that agreed, or could federated tags ever be
writable, or written through to the source catalog? This changes what
origin means: in a write-through model it drives where writes go, not just
provenance on reads.
1. Given that model, does any client need origin at all? Under read-only
one-way sync, read-only enforcement, re-sync, authorization of imported
tags, and strict collision handling all look like things Polaris can do
server-side. JB noted provenance "stays available through the Tag API for
anyone who needs it". Could we name who that is, e.g. a governance/masking
engine, a UI, or a sync tool, and what it decides based on origin? If there
is no such consumer, origin can stay server-internal.
2. Even if one does, a generic native-vs-external flag isn't enough. The
thread consistently says foreign tags are "attributed to the source
catalog", and Yufei's point about "who is asserting it" needs a concrete
source, especially with Sung's "possibly others" as additional sources. So
origin would have to identify the specific source, e.g. {type, source}
where source references a Polaris entity (federated catalog/connection id)
rather than a mutable name. But if foreign tags only exist inside their own
federated catalog, isn't the containing catalog already that answer?
3. Even if origin names the source, is same-name native + foreign
coexistence on one table a real requirement? Andrei mentioned allowing it,
but with strict collisions that state would fail the load anyway.
Namespacing foreign definitions per source would avoid changing name
uniqueness and assignment identity.
Unless we settle these before merge, I'd propose #5366 reserve only a
read-only, server-set origin {type, source}, with type always NATIVE and
source unset in v1, and defer identity/uniqueness changes to the federation
design.
Thanks,
EJ
On Thu, Oct 22, 2026 at 11:29 AM Andrei Tserakhau via dev <
dev@polaris.apache.org> wrote:
> Hi Dmitri,
>
> Agreed, that makes sense. Tag assignments are keyed by the target's entity
> ID (plus field ID for columns), so without mirrored table entities there's
> nothing for imported tags to attach to. Gating federated tag import on
> ENABLE_SUB_CATALOG_RBAC_FOR_FEDERATED_CATALOGS looks like a reasonable
> approach
>
> When the flag is off, Polaris wouldn't import federated labels as tags.
> I'll capture this in the design next to the per-catalog suppress option.
>
> Thanks,
> Andrei
>
> On Thu, Oct 22, 2026 at 7:33 PM Dmitri Bourlatchkov <
> dmitri.bourlatchkov@gmail.com> wrote:
>
> > Hi Andrei,
> >
> > Thanks for the clarification about label import. I must have missed that
> > we're going to create mirror Polaris entities for them.
> >
> > I think this approach will work fine. However, I think it still requires
> > the ENABLE_SUB_CATALOG_RBAC_FOR_FEDERATED_CATALOGS flag to be set.
> > Otherwise, Polaris will not create mirror entities for tables themselves.
> >
> > We may want to gate federated tag imports on that flag too. WDYT?
> >
> > Thanks,
> > Dmitri.
> >
> > On Thu, 22 Oct 2026 at 02:56, Andrei Tserakhau <
> > andrei.tserakhau@databricks.com> wrote:
> >
> >> Hi Dmitri,
> >>
> >> Thanks, that's a good point. I agree there's a skew if local tags are
> >> filtered per user while federated labels are forwarded based on the
> service
> >> identity.
> >>
> >> I'd see identity propagation as nice to have rather than required. It
> >> would remove the skew, but labels don't need to depend on it.
> >>
> >> The consumer role is close to the mirror approach used for tables.
> >> Foreign labels are imported as Polaris tags, attributed to the source
> and
> >> read-only. Once they're Polaris entities, the Polaris authorizer decides
> >> who sees them. What we can't reproduce is the source's own per-user
> rules,
> >> because those don't travel over the wire. So in practice:
> >>
> >> - the federation service identity defines the maximum set Polaris can
> see;
> >> - Polaris permissions on the imported tags narrow it per user;
> >> - the per-catalog option to suppress federated labels covers deployments
> >> where the service identity is too broad.
> >>
> >> That's the same trade-off federated tables have today, and I'll call it
> >> out explicitly as a deployment consideration in the design. If identity
> >> propagation lands in federation later, labels would just benefit from
> it.
> >>
> >> Thanks,
> >> Andrei
> >>
> >> On Thu, Oct 22, 2026 at 1:02 AM Dmitri Bourlatchkov <di...@apache.org>
> >> wrote:
> >>
> >>> Hi All,
> >>>
> >>> On permissions and federated catalogs: If we assume that tag/label
> >>> visibility is a product of authorization rules, then it will be
> critical to
> >>> propagate the client's identity to Federated catalogs, I think.
> >>>
> >>> Note that this is not how Federation currently works.
> >>>
> >>> If we filter local tags by local Authorizer decisions, but
> >>> forward Federated labels based on the service identity, it will create
> an
> >>> authorization skew.
> >>>
> >>> A similar skew exists with vended credentials for federated tables.
> >>> However, for tables the recommendation currently is to create mirror
> >>> entities in Polaris [5528][5548], which subsequently allows
> Polaris-side
> >>> Authorization deciusions. (Note that the referenced Federation RBAC doc
> >>> changes have not been released yet.)
> >>>
> >>> However, this does not seem to be possible with labels (due to limited
> >>> provenance information, as discussed previously).
> >>>
> >>> Cheers,
> >>> Dmitri.
> >>>
> >>> [5528] https://github.com/apache/polaris/issues/5528
> >>>
> >>> [5548] https://github.com/apache/polaris/pull/5548
> >>>
> >>> On Mon, Oct 12, 2026 at 6:49 AM Andrei Tserakhau via dev <
> >>> dev@polaris.apache.org> wrote:
> >>>
> >>>> Hi JB,
> >>>>
> >>>> Thanks, good to keep the Glasgow conversation going. Glad we're
> aligned
> >>>> on
> >>>> opt B.
> >>>>
> >>>> On your questions:
> >>>>
> >>>> 1/ Permissions / leakage: I'd reuse the existing tag visibility rules
> >>>> rather than add a label-specific privilege. On `loadTable` /
> `loadView`,
> >>>> labels would only include tags the caller is already allowed to see
> >>>> through
> >>>> the Tag API. Table access alone would not expose anything extra.
> >>>>
> >>>> 2/ Performance: Agreed, `loadTable` is too hot to resolve inheritance
> on
> >>>> every call. I'd cache the effective tags per table, invalidate on tag
> >>>> changes, then apply the caller-specific visibility filter on top. That
> >>>> should keep the added cost small.
> >>>>
> >>>> 3/ Default vs gated: I'd gate it initially with something like
> >>>> `polaris.label.enabled` per catalog, default off. We can move toward
> >>>> on-by-default later once the behavior and cost are proven.
> >>>>
> >>>> Best,
> >>>> Andrei
> >>>>
> >>>> On Mon, Oct 12, 2026 at 9:43 AM Jean-Baptiste Onofré <jb@nanthrax.net
> >
> >>>> wrote:
> >>>>
> >>>> > Hi Andrei
> >>>> >
> >>>> > Thanks for starting this thread after our discussion during
> Lakehouse
> >>>> > Day/CommunityOverCode in Glasgow.
> >>>> >
> >>>> > I'm +1 to option B (labels as a read-only projection over tags).
> Tags
> >>>> > already have definitions, allowed values, inheritance and reverse
> >>>> lookup,
> >>>> > and both models are keyed by Iceberg field-id. A separate labels
> >>>> entity
> >>>> > would give us two source of truth to reconcile, with no benefit
> imho.
> >>>> >
> >>>> > The tag work isn't merged yet, so it's cheap (good timing :)) to
> >>>> reserve
> >>>> > what the consumer role needs. Postponing this later would be much
> more
> >>>> > painful. I would keep the actual federation impl out of the first
> tag
> >>>> PR.
> >>>> >
> >>>> > About collisions, "native wins" is reasonable. Polaris is the
> >>>> asserting
> >>>> > catalog at the point of access, so I'm fine with that rule.
> >>>> >
> >>>> > I have a few questions:
> >>>> > - We have to be careful that tag-definition visibility (permission)
> >>>> > doesn't leak through labels. Do we plan to see labels on
> >>>> loadTable/loadView
> >>>> > relying on the table read privileges? Or do we want specific
> >>>> privileges for
> >>>> > label/tag?
> >>>> > - Resolving tags with inheritence on every loadTable can be
> >>>> significant
> >>>> > for performence. What are your thoughts about that? Opt caching?
> >>>> > - Do we want to have label emitted by default, or do you want to
> >>>> guate by
> >>>> > catalog configuration (polaris.label.enabled=on)?
> >>>> >
> >>>> > Thanks!
> >>>> > Regards
> >>>> > JB
> >>>> >
> >>>> > On Sun, Oct 11, 2026 at 11:26 AM Andrei Tserakhau via dev <
> >>>> > dev@polaris.apache.org> wrote:
> >>>> >
> >>>> >> Hi all,
> >>>> >>
> >>>> >> Now that the IRC "labels" field has merged in Iceberg Spec ([0])
> and
> >>>> the
> >>>> >> Polaris Tag work is close ([1]), I'd like to open a thread on how
> >>>> Polaris
> >>>> >> should support labels.
> >>>> >>
> >>>> >> There are two ways Polaris could do labels:
> >>>> >>
> >>>> >> A) Labels as a separate entity - their own definitions/store,
> >>>> parallel to
> >>>> >> Tags.
> >>>> >> B) Labels as a projection over Tags - read-only IRC view /
> >>>> projection of
> >>>> >> the existing tag model.
> >>>> >>
> >>>> >> I propose B. Tags already are the structured model: definitions,
> >>>> >> assignments, allowed values, inheritance, reverse lookup. IRC
> labels
> >>>> are
> >>>> >> designed as the flat read surface of such models (object-level
> >>>> key/values
> >>>> >> plus per-field labels by field-id). A separate labels entity would
> >>>> >> duplicate the tag model and create two sources of truth to
> >>>> reconcile; a
> >>>> >> projection keeps one model with two surfaces, a structured
> >>>> authoring API
> >>>> >> and an interoperable flat read field. Column identity already lines
> >>>> up:
> >>>> >> Tags use the Iceberg field-id, and IRC labels fields are keyed by
> >>>> >> field-id.
> >>>> >>
> >>>> >> Given B, a Polaris catalog plays two roles:
> >>>> >>
> >>>> >> 1. Producer. Polaris resolves a target's effective tags
> (inheritance
> >>>> >> applied, closest-wins) and projects them into IRC labels on
> >>>> >> loadTable/loadView. The Tag API stays the authoring/management
> >>>> surface and
> >>>> >> labels is the read projection for IRC compliant engines.
> >>>> >>
> >>>> >> 2. Consumer. When Polaris federates a foreign IRC catalog, it reads
> >>>> that
> >>>> >> catalog's labels and stores them as tags owned by the source
> catalog:
> >>>> >> read-only in Polaris and clearly marked as foreign. A Polaris user
> >>>> cannot
> >>>> >> edit them (they change only when Polaris re-syncs from the source)
> >>>> and
> >>>> >> they
> >>>> >> stay separate from Polaris's own natively-authored tags. That is
> how
> >>>> a
> >>>> >> foreign catalog's metadata becomes usable in Polaris without
> >>>> pretending it
> >>>> >> is local.
> >>>> >>
> >>>> >> Mostly I'd like the community read on whether projection-over-tags
> >>>> feels
> >>>> >> right, and whether the producer/consumer split is worth keeping in
> >>>> mind in
> >>>> >> the Tag design so the contract leaves room for it. Would like to
> >>>> hear if
> >>>> >> this framing is wrong, or where a separate entity would actually
> >>>> serve
> >>>> >> better.
> >>>> >>
> >>>> >> Thanks,
> >>>> >> Andrei
> >>>> >>
> >>>> >> [0] IRC Labels spec PR -
> >>>> https://github.com/apache/iceberg/pull/15750
> >>>> >> [1] Tags discussion thread -
> >>>> >> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
> >>>> >>
> >>>> >
> >>>>
> >>>
> >>>
> >>> --
> >>> Dmitri Bourlatchkov
> >>> Senior Staff Software Engineer, Dremio
> >>> Dremio.com
> >>> <
> https://www.dremio.com/?utm_medium=email&utm_source=signature&utm_term=na&utm_content=email-signature&utm_campaign=email-signature>
> /
> >>> Follow Us on LinkedIn <https://www.linkedin.com/company/dremio> / Get
> >>> Started <https://www.dremio.com/get-started/>
> >>>
> >>>
> >>> The Agentic Lakehouse
> >>> The only lakehouse built for agents, managed by agents
> >>>
> >>>
> >>>
>
Re: [DISCUSS] IRC Labels in Polaris
Posted by Andrei Tserakhau via dev <de...@polaris.apache.org>.
Hi Dmitri,
Agreed, that makes sense. Tag assignments are keyed by the target's entity
ID (plus field ID for columns), so without mirrored table entities there's
nothing for imported tags to attach to. Gating federated tag import on
ENABLE_SUB_CATALOG_RBAC_FOR_FEDERATED_CATALOGS looks like a reasonable
approach
When the flag is off, Polaris wouldn't import federated labels as tags.
I'll capture this in the design next to the per-catalog suppress option.
Thanks,
Andrei
On Thu, Oct 22, 2026 at 7:33 PM Dmitri Bourlatchkov <
dmitri.bourlatchkov@gmail.com> wrote:
> Hi Andrei,
>
> Thanks for the clarification about label import. I must have missed that
> we're going to create mirror Polaris entities for them.
>
> I think this approach will work fine. However, I think it still requires
> the ENABLE_SUB_CATALOG_RBAC_FOR_FEDERATED_CATALOGS flag to be set.
> Otherwise, Polaris will not create mirror entities for tables themselves.
>
> We may want to gate federated tag imports on that flag too. WDYT?
>
> Thanks,
> Dmitri.
>
> On Thu, 22 Oct 2026 at 02:56, Andrei Tserakhau <
> andrei.tserakhau@databricks.com> wrote:
>
>> Hi Dmitri,
>>
>> Thanks, that's a good point. I agree there's a skew if local tags are
>> filtered per user while federated labels are forwarded based on the service
>> identity.
>>
>> I'd see identity propagation as nice to have rather than required. It
>> would remove the skew, but labels don't need to depend on it.
>>
>> The consumer role is close to the mirror approach used for tables.
>> Foreign labels are imported as Polaris tags, attributed to the source and
>> read-only. Once they're Polaris entities, the Polaris authorizer decides
>> who sees them. What we can't reproduce is the source's own per-user rules,
>> because those don't travel over the wire. So in practice:
>>
>> - the federation service identity defines the maximum set Polaris can see;
>> - Polaris permissions on the imported tags narrow it per user;
>> - the per-catalog option to suppress federated labels covers deployments
>> where the service identity is too broad.
>>
>> That's the same trade-off federated tables have today, and I'll call it
>> out explicitly as a deployment consideration in the design. If identity
>> propagation lands in federation later, labels would just benefit from it.
>>
>> Thanks,
>> Andrei
>>
>> On Thu, Oct 22, 2026 at 1:02 AM Dmitri Bourlatchkov <di...@apache.org>
>> wrote:
>>
>>> Hi All,
>>>
>>> On permissions and federated catalogs: If we assume that tag/label
>>> visibility is a product of authorization rules, then it will be critical to
>>> propagate the client's identity to Federated catalogs, I think.
>>>
>>> Note that this is not how Federation currently works.
>>>
>>> If we filter local tags by local Authorizer decisions, but
>>> forward Federated labels based on the service identity, it will create an
>>> authorization skew.
>>>
>>> A similar skew exists with vended credentials for federated tables.
>>> However, for tables the recommendation currently is to create mirror
>>> entities in Polaris [5528][5548], which subsequently allows Polaris-side
>>> Authorization deciusions. (Note that the referenced Federation RBAC doc
>>> changes have not been released yet.)
>>>
>>> However, this does not seem to be possible with labels (due to limited
>>> provenance information, as discussed previously).
>>>
>>> Cheers,
>>> Dmitri.
>>>
>>> [5528] https://github.com/apache/polaris/issues/5528
>>>
>>> [5548] https://github.com/apache/polaris/pull/5548
>>>
>>> On Mon, Oct 12, 2026 at 6:49 AM Andrei Tserakhau via dev <
>>> dev@polaris.apache.org> wrote:
>>>
>>>> Hi JB,
>>>>
>>>> Thanks, good to keep the Glasgow conversation going. Glad we're aligned
>>>> on
>>>> opt B.
>>>>
>>>> On your questions:
>>>>
>>>> 1/ Permissions / leakage: I'd reuse the existing tag visibility rules
>>>> rather than add a label-specific privilege. On `loadTable` / `loadView`,
>>>> labels would only include tags the caller is already allowed to see
>>>> through
>>>> the Tag API. Table access alone would not expose anything extra.
>>>>
>>>> 2/ Performance: Agreed, `loadTable` is too hot to resolve inheritance on
>>>> every call. I'd cache the effective tags per table, invalidate on tag
>>>> changes, then apply the caller-specific visibility filter on top. That
>>>> should keep the added cost small.
>>>>
>>>> 3/ Default vs gated: I'd gate it initially with something like
>>>> `polaris.label.enabled` per catalog, default off. We can move toward
>>>> on-by-default later once the behavior and cost are proven.
>>>>
>>>> Best,
>>>> Andrei
>>>>
>>>> On Mon, Oct 12, 2026 at 9:43 AM Jean-Baptiste Onofré <jb...@nanthrax.net>
>>>> wrote:
>>>>
>>>> > Hi Andrei
>>>> >
>>>> > Thanks for starting this thread after our discussion during Lakehouse
>>>> > Day/CommunityOverCode in Glasgow.
>>>> >
>>>> > I'm +1 to option B (labels as a read-only projection over tags). Tags
>>>> > already have definitions, allowed values, inheritance and reverse
>>>> lookup,
>>>> > and both models are keyed by Iceberg field-id. A separate labels
>>>> entity
>>>> > would give us two source of truth to reconcile, with no benefit imho.
>>>> >
>>>> > The tag work isn't merged yet, so it's cheap (good timing :)) to
>>>> reserve
>>>> > what the consumer role needs. Postponing this later would be much more
>>>> > painful. I would keep the actual federation impl out of the first tag
>>>> PR.
>>>> >
>>>> > About collisions, "native wins" is reasonable. Polaris is the
>>>> asserting
>>>> > catalog at the point of access, so I'm fine with that rule.
>>>> >
>>>> > I have a few questions:
>>>> > - We have to be careful that tag-definition visibility (permission)
>>>> > doesn't leak through labels. Do we plan to see labels on
>>>> loadTable/loadView
>>>> > relying on the table read privileges? Or do we want specific
>>>> privileges for
>>>> > label/tag?
>>>> > - Resolving tags with inheritence on every loadTable can be
>>>> significant
>>>> > for performence. What are your thoughts about that? Opt caching?
>>>> > - Do we want to have label emitted by default, or do you want to
>>>> guate by
>>>> > catalog configuration (polaris.label.enabled=on)?
>>>> >
>>>> > Thanks!
>>>> > Regards
>>>> > JB
>>>> >
>>>> > On Sun, Oct 11, 2026 at 11:26 AM Andrei Tserakhau via dev <
>>>> > dev@polaris.apache.org> wrote:
>>>> >
>>>> >> Hi all,
>>>> >>
>>>> >> Now that the IRC "labels" field has merged in Iceberg Spec ([0]) and
>>>> the
>>>> >> Polaris Tag work is close ([1]), I'd like to open a thread on how
>>>> Polaris
>>>> >> should support labels.
>>>> >>
>>>> >> There are two ways Polaris could do labels:
>>>> >>
>>>> >> A) Labels as a separate entity - their own definitions/store,
>>>> parallel to
>>>> >> Tags.
>>>> >> B) Labels as a projection over Tags - read-only IRC view /
>>>> projection of
>>>> >> the existing tag model.
>>>> >>
>>>> >> I propose B. Tags already are the structured model: definitions,
>>>> >> assignments, allowed values, inheritance, reverse lookup. IRC labels
>>>> are
>>>> >> designed as the flat read surface of such models (object-level
>>>> key/values
>>>> >> plus per-field labels by field-id). A separate labels entity would
>>>> >> duplicate the tag model and create two sources of truth to
>>>> reconcile; a
>>>> >> projection keeps one model with two surfaces, a structured
>>>> authoring API
>>>> >> and an interoperable flat read field. Column identity already lines
>>>> up:
>>>> >> Tags use the Iceberg field-id, and IRC labels fields are keyed by
>>>> >> field-id.
>>>> >>
>>>> >> Given B, a Polaris catalog plays two roles:
>>>> >>
>>>> >> 1. Producer. Polaris resolves a target's effective tags (inheritance
>>>> >> applied, closest-wins) and projects them into IRC labels on
>>>> >> loadTable/loadView. The Tag API stays the authoring/management
>>>> surface and
>>>> >> labels is the read projection for IRC compliant engines.
>>>> >>
>>>> >> 2. Consumer. When Polaris federates a foreign IRC catalog, it reads
>>>> that
>>>> >> catalog's labels and stores them as tags owned by the source catalog:
>>>> >> read-only in Polaris and clearly marked as foreign. A Polaris user
>>>> cannot
>>>> >> edit them (they change only when Polaris re-syncs from the source)
>>>> and
>>>> >> they
>>>> >> stay separate from Polaris's own natively-authored tags. That is how
>>>> a
>>>> >> foreign catalog's metadata becomes usable in Polaris without
>>>> pretending it
>>>> >> is local.
>>>> >>
>>>> >> Mostly I'd like the community read on whether projection-over-tags
>>>> feels
>>>> >> right, and whether the producer/consumer split is worth keeping in
>>>> mind in
>>>> >> the Tag design so the contract leaves room for it. Would like to
>>>> hear if
>>>> >> this framing is wrong, or where a separate entity would actually
>>>> serve
>>>> >> better.
>>>> >>
>>>> >> Thanks,
>>>> >> Andrei
>>>> >>
>>>> >> [0] IRC Labels spec PR -
>>>> https://github.com/apache/iceberg/pull/15750
>>>> >> [1] Tags discussion thread -
>>>> >> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
>>>> >>
>>>> >
>>>>
>>>
>>>
>>> --
>>> Dmitri Bourlatchkov
>>> Senior Staff Software Engineer, Dremio
>>> Dremio.com
>>> <https://www.dremio.com/?utm_medium=email&utm_source=signature&utm_term=na&utm_content=email-signature&utm_campaign=email-signature> /
>>> Follow Us on LinkedIn <https://www.linkedin.com/company/dremio> / Get
>>> Started <https://www.dremio.com/get-started/>
>>>
>>>
>>> The Agentic Lakehouse
>>> The only lakehouse built for agents, managed by agents
>>>
>>>
>>>
Re: [DISCUSS] IRC Labels in Polaris
Posted by Dmitri Bourlatchkov <dm...@gmail.com>.
Hi Andrei,
Thanks for the clarification about label import. I must have missed that
we're going to create mirror Polaris entities for them.
I think this approach will work fine. However, I think it still requires
the ENABLE_SUB_CATALOG_RBAC_FOR_FEDERATED_CATALOGS flag to be set.
Otherwise, Polaris will not create mirror entities for tables themselves.
We may want to gate federated tag imports on that flag too. WDYT?
Thanks,
Dmitri.
On Thu, 22 Oct 2026 at 02:56, Andrei Tserakhau <
andrei.tserakhau@databricks.com> wrote:
> Hi Dmitri,
>
> Thanks, that's a good point. I agree there's a skew if local tags are
> filtered per user while federated labels are forwarded based on the service
> identity.
>
> I'd see identity propagation as nice to have rather than required. It
> would remove the skew, but labels don't need to depend on it.
>
> The consumer role is close to the mirror approach used for tables. Foreign
> labels are imported as Polaris tags, attributed to the source and
> read-only. Once they're Polaris entities, the Polaris authorizer decides
> who sees them. What we can't reproduce is the source's own per-user rules,
> because those don't travel over the wire. So in practice:
>
> - the federation service identity defines the maximum set Polaris can see;
> - Polaris permissions on the imported tags narrow it per user;
> - the per-catalog option to suppress federated labels covers deployments
> where the service identity is too broad.
>
> That's the same trade-off federated tables have today, and I'll call it
> out explicitly as a deployment consideration in the design. If identity
> propagation lands in federation later, labels would just benefit from it.
>
> Thanks,
> Andrei
>
> On Thu, Oct 22, 2026 at 1:02 AM Dmitri Bourlatchkov <di...@apache.org>
> wrote:
>
>> Hi All,
>>
>> On permissions and federated catalogs: If we assume that tag/label
>> visibility is a product of authorization rules, then it will be critical to
>> propagate the client's identity to Federated catalogs, I think.
>>
>> Note that this is not how Federation currently works.
>>
>> If we filter local tags by local Authorizer decisions, but
>> forward Federated labels based on the service identity, it will create an
>> authorization skew.
>>
>> A similar skew exists with vended credentials for federated tables.
>> However, for tables the recommendation currently is to create mirror
>> entities in Polaris [5528][5548], which subsequently allows Polaris-side
>> Authorization deciusions. (Note that the referenced Federation RBAC doc
>> changes have not been released yet.)
>>
>> However, this does not seem to be possible with labels (due to limited
>> provenance information, as discussed previously).
>>
>> Cheers,
>> Dmitri.
>>
>> [5528] https://github.com/apache/polaris/issues/5528
>>
>> [5548] https://github.com/apache/polaris/pull/5548
>>
>> On Mon, Oct 12, 2026 at 6:49 AM Andrei Tserakhau via dev <
>> dev@polaris.apache.org> wrote:
>>
>>> Hi JB,
>>>
>>> Thanks, good to keep the Glasgow conversation going. Glad we're aligned
>>> on
>>> opt B.
>>>
>>> On your questions:
>>>
>>> 1/ Permissions / leakage: I'd reuse the existing tag visibility rules
>>> rather than add a label-specific privilege. On `loadTable` / `loadView`,
>>> labels would only include tags the caller is already allowed to see
>>> through
>>> the Tag API. Table access alone would not expose anything extra.
>>>
>>> 2/ Performance: Agreed, `loadTable` is too hot to resolve inheritance on
>>> every call. I'd cache the effective tags per table, invalidate on tag
>>> changes, then apply the caller-specific visibility filter on top. That
>>> should keep the added cost small.
>>>
>>> 3/ Default vs gated: I'd gate it initially with something like
>>> `polaris.label.enabled` per catalog, default off. We can move toward
>>> on-by-default later once the behavior and cost are proven.
>>>
>>> Best,
>>> Andrei
>>>
>>> On Mon, Oct 12, 2026 at 9:43 AM Jean-Baptiste Onofré <jb...@nanthrax.net>
>>> wrote:
>>>
>>> > Hi Andrei
>>> >
>>> > Thanks for starting this thread after our discussion during Lakehouse
>>> > Day/CommunityOverCode in Glasgow.
>>> >
>>> > I'm +1 to option B (labels as a read-only projection over tags). Tags
>>> > already have definitions, allowed values, inheritance and reverse
>>> lookup,
>>> > and both models are keyed by Iceberg field-id. A separate labels entity
>>> > would give us two source of truth to reconcile, with no benefit imho.
>>> >
>>> > The tag work isn't merged yet, so it's cheap (good timing :)) to
>>> reserve
>>> > what the consumer role needs. Postponing this later would be much more
>>> > painful. I would keep the actual federation impl out of the first tag
>>> PR.
>>> >
>>> > About collisions, "native wins" is reasonable. Polaris is the asserting
>>> > catalog at the point of access, so I'm fine with that rule.
>>> >
>>> > I have a few questions:
>>> > - We have to be careful that tag-definition visibility (permission)
>>> > doesn't leak through labels. Do we plan to see labels on
>>> loadTable/loadView
>>> > relying on the table read privileges? Or do we want specific
>>> privileges for
>>> > label/tag?
>>> > - Resolving tags with inheritence on every loadTable can be significant
>>> > for performence. What are your thoughts about that? Opt caching?
>>> > - Do we want to have label emitted by default, or do you want to guate
>>> by
>>> > catalog configuration (polaris.label.enabled=on)?
>>> >
>>> > Thanks!
>>> > Regards
>>> > JB
>>> >
>>> > On Sun, Oct 11, 2026 at 11:26 AM Andrei Tserakhau via dev <
>>> > dev@polaris.apache.org> wrote:
>>> >
>>> >> Hi all,
>>> >>
>>> >> Now that the IRC "labels" field has merged in Iceberg Spec ([0]) and
>>> the
>>> >> Polaris Tag work is close ([1]), I'd like to open a thread on how
>>> Polaris
>>> >> should support labels.
>>> >>
>>> >> There are two ways Polaris could do labels:
>>> >>
>>> >> A) Labels as a separate entity - their own definitions/store,
>>> parallel to
>>> >> Tags.
>>> >> B) Labels as a projection over Tags - read-only IRC view / projection
>>> of
>>> >> the existing tag model.
>>> >>
>>> >> I propose B. Tags already are the structured model: definitions,
>>> >> assignments, allowed values, inheritance, reverse lookup. IRC labels
>>> are
>>> >> designed as the flat read surface of such models (object-level
>>> key/values
>>> >> plus per-field labels by field-id). A separate labels entity would
>>> >> duplicate the tag model and create two sources of truth to reconcile;
>>> a
>>> >> projection keeps one model with two surfaces, a structured authoring
>>> API
>>> >> and an interoperable flat read field. Column identity already lines
>>> up:
>>> >> Tags use the Iceberg field-id, and IRC labels fields are keyed by
>>> >> field-id.
>>> >>
>>> >> Given B, a Polaris catalog plays two roles:
>>> >>
>>> >> 1. Producer. Polaris resolves a target's effective tags (inheritance
>>> >> applied, closest-wins) and projects them into IRC labels on
>>> >> loadTable/loadView. The Tag API stays the authoring/management
>>> surface and
>>> >> labels is the read projection for IRC compliant engines.
>>> >>
>>> >> 2. Consumer. When Polaris federates a foreign IRC catalog, it reads
>>> that
>>> >> catalog's labels and stores them as tags owned by the source catalog:
>>> >> read-only in Polaris and clearly marked as foreign. A Polaris user
>>> cannot
>>> >> edit them (they change only when Polaris re-syncs from the source) and
>>> >> they
>>> >> stay separate from Polaris's own natively-authored tags. That is how a
>>> >> foreign catalog's metadata becomes usable in Polaris without
>>> pretending it
>>> >> is local.
>>> >>
>>> >> Mostly I'd like the community read on whether projection-over-tags
>>> feels
>>> >> right, and whether the producer/consumer split is worth keeping in
>>> mind in
>>> >> the Tag design so the contract leaves room for it. Would like to hear
>>> if
>>> >> this framing is wrong, or where a separate entity would actually serve
>>> >> better.
>>> >>
>>> >> Thanks,
>>> >> Andrei
>>> >>
>>> >> [0] IRC Labels spec PR - https://github.com/apache/iceberg/pull/15750
>>> >> [1] Tags discussion thread -
>>> >> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
>>> >>
>>> >
>>>
>>
>>
>> --
>> Dmitri Bourlatchkov
>> Senior Staff Software Engineer, Dremio
>> Dremio.com
>> <https://www.dremio.com/?utm_medium=email&utm_source=signature&utm_term=na&utm_content=email-signature&utm_campaign=email-signature> /
>> Follow Us on LinkedIn <https://www.linkedin.com/company/dremio> / Get
>> Started <https://www.dremio.com/get-started/>
>>
>>
>> The Agentic Lakehouse
>> The only lakehouse built for agents, managed by agents
>>
>>
>>
Re: [DISCUSS] IRC Labels in Polaris
Posted by Andrei Tserakhau via dev <de...@polaris.apache.org>.
Hi Dmitri,
Thanks, that's a good point. I agree there's a skew if local tags are
filtered per user while federated labels are forwarded based on the service
identity.
I'd see identity propagation as nice to have rather than required. It would
remove the skew, but labels don't need to depend on it.
The consumer role is close to the mirror approach used for tables. Foreign
labels are imported as Polaris tags, attributed to the source and
read-only. Once they're Polaris entities, the Polaris authorizer decides
who sees them. What we can't reproduce is the source's own per-user rules,
because those don't travel over the wire. So in practice:
- the federation service identity defines the maximum set Polaris can see;
- Polaris permissions on the imported tags narrow it per user;
- the per-catalog option to suppress federated labels covers deployments
where the service identity is too broad.
That's the same trade-off federated tables have today, and I'll call it out
explicitly as a deployment consideration in the design. If identity
propagation lands in federation later, labels would just benefit from it.
Thanks,
Andrei
On Thu, Oct 22, 2026 at 1:02 AM Dmitri Bourlatchkov <di...@apache.org>
wrote:
> Hi All,
>
> On permissions and federated catalogs: If we assume that tag/label
> visibility is a product of authorization rules, then it will be critical to
> propagate the client's identity to Federated catalogs, I think.
>
> Note that this is not how Federation currently works.
>
> If we filter local tags by local Authorizer decisions, but
> forward Federated labels based on the service identity, it will create an
> authorization skew.
>
> A similar skew exists with vended credentials for federated tables.
> However, for tables the recommendation currently is to create mirror
> entities in Polaris [5528][5548], which subsequently allows Polaris-side
> Authorization deciusions. (Note that the referenced Federation RBAC doc
> changes have not been released yet.)
>
> However, this does not seem to be possible with labels (due to limited
> provenance information, as discussed previously).
>
> Cheers,
> Dmitri.
>
> [5528] https://github.com/apache/polaris/issues/5528
>
> [5548] https://github.com/apache/polaris/pull/5548
>
> On Mon, Oct 12, 2026 at 6:49 AM Andrei Tserakhau via dev <
> dev@polaris.apache.org> wrote:
>
>> Hi JB,
>>
>> Thanks, good to keep the Glasgow conversation going. Glad we're aligned on
>> opt B.
>>
>> On your questions:
>>
>> 1/ Permissions / leakage: I'd reuse the existing tag visibility rules
>> rather than add a label-specific privilege. On `loadTable` / `loadView`,
>> labels would only include tags the caller is already allowed to see
>> through
>> the Tag API. Table access alone would not expose anything extra.
>>
>> 2/ Performance: Agreed, `loadTable` is too hot to resolve inheritance on
>> every call. I'd cache the effective tags per table, invalidate on tag
>> changes, then apply the caller-specific visibility filter on top. That
>> should keep the added cost small.
>>
>> 3/ Default vs gated: I'd gate it initially with something like
>> `polaris.label.enabled` per catalog, default off. We can move toward
>> on-by-default later once the behavior and cost are proven.
>>
>> Best,
>> Andrei
>>
>> On Mon, Oct 12, 2026 at 9:43 AM Jean-Baptiste Onofré <jb...@nanthrax.net>
>> wrote:
>>
>> > Hi Andrei
>> >
>> > Thanks for starting this thread after our discussion during Lakehouse
>> > Day/CommunityOverCode in Glasgow.
>> >
>> > I'm +1 to option B (labels as a read-only projection over tags). Tags
>> > already have definitions, allowed values, inheritance and reverse
>> lookup,
>> > and both models are keyed by Iceberg field-id. A separate labels entity
>> > would give us two source of truth to reconcile, with no benefit imho.
>> >
>> > The tag work isn't merged yet, so it's cheap (good timing :)) to reserve
>> > what the consumer role needs. Postponing this later would be much more
>> > painful. I would keep the actual federation impl out of the first tag
>> PR.
>> >
>> > About collisions, "native wins" is reasonable. Polaris is the asserting
>> > catalog at the point of access, so I'm fine with that rule.
>> >
>> > I have a few questions:
>> > - We have to be careful that tag-definition visibility (permission)
>> > doesn't leak through labels. Do we plan to see labels on
>> loadTable/loadView
>> > relying on the table read privileges? Or do we want specific privileges
>> for
>> > label/tag?
>> > - Resolving tags with inheritence on every loadTable can be significant
>> > for performence. What are your thoughts about that? Opt caching?
>> > - Do we want to have label emitted by default, or do you want to guate
>> by
>> > catalog configuration (polaris.label.enabled=on)?
>> >
>> > Thanks!
>> > Regards
>> > JB
>> >
>> > On Sun, Oct 11, 2026 at 11:26 AM Andrei Tserakhau via dev <
>> > dev@polaris.apache.org> wrote:
>> >
>> >> Hi all,
>> >>
>> >> Now that the IRC "labels" field has merged in Iceberg Spec ([0]) and
>> the
>> >> Polaris Tag work is close ([1]), I'd like to open a thread on how
>> Polaris
>> >> should support labels.
>> >>
>> >> There are two ways Polaris could do labels:
>> >>
>> >> A) Labels as a separate entity - their own definitions/store, parallel
>> to
>> >> Tags.
>> >> B) Labels as a projection over Tags - read-only IRC view / projection
>> of
>> >> the existing tag model.
>> >>
>> >> I propose B. Tags already are the structured model: definitions,
>> >> assignments, allowed values, inheritance, reverse lookup. IRC labels
>> are
>> >> designed as the flat read surface of such models (object-level
>> key/values
>> >> plus per-field labels by field-id). A separate labels entity would
>> >> duplicate the tag model and create two sources of truth to reconcile; a
>> >> projection keeps one model with two surfaces, a structured authoring
>> API
>> >> and an interoperable flat read field. Column identity already lines up:
>> >> Tags use the Iceberg field-id, and IRC labels fields are keyed by
>> >> field-id.
>> >>
>> >> Given B, a Polaris catalog plays two roles:
>> >>
>> >> 1. Producer. Polaris resolves a target's effective tags (inheritance
>> >> applied, closest-wins) and projects them into IRC labels on
>> >> loadTable/loadView. The Tag API stays the authoring/management surface
>> and
>> >> labels is the read projection for IRC compliant engines.
>> >>
>> >> 2. Consumer. When Polaris federates a foreign IRC catalog, it reads
>> that
>> >> catalog's labels and stores them as tags owned by the source catalog:
>> >> read-only in Polaris and clearly marked as foreign. A Polaris user
>> cannot
>> >> edit them (they change only when Polaris re-syncs from the source) and
>> >> they
>> >> stay separate from Polaris's own natively-authored tags. That is how a
>> >> foreign catalog's metadata becomes usable in Polaris without
>> pretending it
>> >> is local.
>> >>
>> >> Mostly I'd like the community read on whether projection-over-tags
>> feels
>> >> right, and whether the producer/consumer split is worth keeping in
>> mind in
>> >> the Tag design so the contract leaves room for it. Would like to hear
>> if
>> >> this framing is wrong, or where a separate entity would actually serve
>> >> better.
>> >>
>> >> Thanks,
>> >> Andrei
>> >>
>> >> [0] IRC Labels spec PR - https://github.com/apache/iceberg/pull/15750
>> >> [1] Tags discussion thread -
>> >> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
>> >>
>> >
>>
>
>
> --
> Dmitri Bourlatchkov
> Senior Staff Software Engineer, Dremio
> Dremio.com
> <https://www.dremio.com/?utm_medium=email&utm_source=signature&utm_term=na&utm_content=email-signature&utm_campaign=email-signature> /
> Follow Us on LinkedIn <https://www.linkedin.com/company/dremio> / Get
> Started <https://www.dremio.com/get-started/>
>
>
> The Agentic Lakehouse
> The only lakehouse built for agents, managed by agents
>
>
>
Re: [DISCUSS] IRC Labels in Polaris
Posted by Dmitri Bourlatchkov <di...@apache.org>.
Hi All,
On permissions and federated catalogs: If we assume that tag/label
visibility is a product of authorization rules, then it will be critical to
propagate the client's identity to Federated catalogs, I think.
Note that this is not how Federation currently works.
If we filter local tags by local Authorizer decisions, but
forward Federated labels based on the service identity, it will create an
authorization skew.
A similar skew exists with vended credentials for federated tables.
However, for tables the recommendation currently is to create mirror
entities in Polaris [5528][5548], which subsequently allows Polaris-side
Authorization deciusions. (Note that the referenced Federation RBAC doc
changes have not been released yet.)
However, this does not seem to be possible with labels (due to limited
provenance information, as discussed previously).
Cheers,
Dmitri.
[5528] https://github.com/apache/polaris/issues/5528
[5548] https://github.com/apache/polaris/pull/5548
On Mon, Oct 12, 2026 at 6:49 AM Andrei Tserakhau via dev <
dev@polaris.apache.org> wrote:
> Hi JB,
>
> Thanks, good to keep the Glasgow conversation going. Glad we're aligned on
> opt B.
>
> On your questions:
>
> 1/ Permissions / leakage: I'd reuse the existing tag visibility rules
> rather than add a label-specific privilege. On `loadTable` / `loadView`,
> labels would only include tags the caller is already allowed to see through
> the Tag API. Table access alone would not expose anything extra.
>
> 2/ Performance: Agreed, `loadTable` is too hot to resolve inheritance on
> every call. I'd cache the effective tags per table, invalidate on tag
> changes, then apply the caller-specific visibility filter on top. That
> should keep the added cost small.
>
> 3/ Default vs gated: I'd gate it initially with something like
> `polaris.label.enabled` per catalog, default off. We can move toward
> on-by-default later once the behavior and cost are proven.
>
> Best,
> Andrei
>
> On Mon, Oct 12, 2026 at 9:43 AM Jean-Baptiste Onofré <jb...@nanthrax.net>
> wrote:
>
> > Hi Andrei
> >
> > Thanks for starting this thread after our discussion during Lakehouse
> > Day/CommunityOverCode in Glasgow.
> >
> > I'm +1 to option B (labels as a read-only projection over tags). Tags
> > already have definitions, allowed values, inheritance and reverse lookup,
> > and both models are keyed by Iceberg field-id. A separate labels entity
> > would give us two source of truth to reconcile, with no benefit imho.
> >
> > The tag work isn't merged yet, so it's cheap (good timing :)) to reserve
> > what the consumer role needs. Postponing this later would be much more
> > painful. I would keep the actual federation impl out of the first tag PR.
> >
> > About collisions, "native wins" is reasonable. Polaris is the asserting
> > catalog at the point of access, so I'm fine with that rule.
> >
> > I have a few questions:
> > - We have to be careful that tag-definition visibility (permission)
> > doesn't leak through labels. Do we plan to see labels on
> loadTable/loadView
> > relying on the table read privileges? Or do we want specific privileges
> for
> > label/tag?
> > - Resolving tags with inheritence on every loadTable can be significant
> > for performence. What are your thoughts about that? Opt caching?
> > - Do we want to have label emitted by default, or do you want to guate by
> > catalog configuration (polaris.label.enabled=on)?
> >
> > Thanks!
> > Regards
> > JB
> >
> > On Sun, Oct 11, 2026 at 11:26 AM Andrei Tserakhau via dev <
> > dev@polaris.apache.org> wrote:
> >
> >> Hi all,
> >>
> >> Now that the IRC "labels" field has merged in Iceberg Spec ([0]) and the
> >> Polaris Tag work is close ([1]), I'd like to open a thread on how
> Polaris
> >> should support labels.
> >>
> >> There are two ways Polaris could do labels:
> >>
> >> A) Labels as a separate entity - their own definitions/store, parallel
> to
> >> Tags.
> >> B) Labels as a projection over Tags - read-only IRC view / projection of
> >> the existing tag model.
> >>
> >> I propose B. Tags already are the structured model: definitions,
> >> assignments, allowed values, inheritance, reverse lookup. IRC labels are
> >> designed as the flat read surface of such models (object-level
> key/values
> >> plus per-field labels by field-id). A separate labels entity would
> >> duplicate the tag model and create two sources of truth to reconcile; a
> >> projection keeps one model with two surfaces, a structured authoring
> API
> >> and an interoperable flat read field. Column identity already lines up:
> >> Tags use the Iceberg field-id, and IRC labels fields are keyed by
> >> field-id.
> >>
> >> Given B, a Polaris catalog plays two roles:
> >>
> >> 1. Producer. Polaris resolves a target's effective tags (inheritance
> >> applied, closest-wins) and projects them into IRC labels on
> >> loadTable/loadView. The Tag API stays the authoring/management surface
> and
> >> labels is the read projection for IRC compliant engines.
> >>
> >> 2. Consumer. When Polaris federates a foreign IRC catalog, it reads that
> >> catalog's labels and stores them as tags owned by the source catalog:
> >> read-only in Polaris and clearly marked as foreign. A Polaris user
> cannot
> >> edit them (they change only when Polaris re-syncs from the source) and
> >> they
> >> stay separate from Polaris's own natively-authored tags. That is how a
> >> foreign catalog's metadata becomes usable in Polaris without pretending
> it
> >> is local.
> >>
> >> Mostly I'd like the community read on whether projection-over-tags feels
> >> right, and whether the producer/consumer split is worth keeping in mind
> in
> >> the Tag design so the contract leaves room for it. Would like to hear if
> >> this framing is wrong, or where a separate entity would actually serve
> >> better.
> >>
> >> Thanks,
> >> Andrei
> >>
> >> [0] IRC Labels spec PR - https://github.com/apache/iceberg/pull/15750
> >> [1] Tags discussion thread -
> >> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
> >>
> >
>
--
Dmitri Bourlatchkov
Senior Staff Software Engineer, Dremio
Dremio.com
<https://www.dremio.com/?utm_medium=email&utm_source=signature&utm_term=na&utm_content=email-signature&utm_campaign=email-signature>
/
Follow Us on LinkedIn <https://www.linkedin.com/company/dremio> / Get
Started <https://www.dremio.com/get-started/>
The Agentic Lakehouse
The only lakehouse built for agents, managed by agents
Re: [DISCUSS] IRC Labels in Polaris
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Yufei
It was my call also in this thread: let's land the Tag work first and build
Labels on top of that.
Labels will be gated per catalog (off by default) anyway, so there's no
rush on the implementation side.
However, I would like to make sure the Tag contract leaves room for what
labels need before is merged. As said earlier in this thread, it's cheap to
do now and much more painful once the API is released.
Provenance is a good example. In the current spec, ObjectTag tells us where
a tag is applied (apply-method and assigned-at), but not who asserts it:
there's no origin and no owner. Andrei's consumer role (foreign, read-only
tags attributed to the source catalog) needs this. It also covers your
point about values whose meaning changes across catalogs: we keep them
attributed to their source instead of merging them.
I suggest adding an origin on tag assignments in #5366. @Andrei, can you
comment on the PR with what the consumer role needs?
About losing provenance in the label projection, I think it's acceptable,
as long as we are explicit about it. From engine point of view, Polaris is
the asserting catalog at the point of access (that 's IRC "spirit").
Provenance stays available through the Tag API for anyone who needs it.
Strict collision by default and the per-catalog option to remove federated
labels already cover the risky case. The design should clearly state what
an engine can and can't infer from labels.
@Andrei, can you please update the design with the points we agreed in this
thread?
Thanks!
Regards
JB
On Wed, Oct 21, 2026 at 1:30 AM Yufei Gu <fl...@gmail.com> wrote:
> Thanks for bringing this up, Andrei! Great discussion, everyone! Many
> good questions were asked in the thread.
>
> Since tags are still in progress, I'd prefer to get that work in first
> and then come back to labels. That should give us a better
> understanding of how the two fit together, esp. with federation, where
> values can conflict or their meaning can change across catalogs.
>
> > One limitation: the labels wire has no provenance
>
> Andrei makes a good point about labels lacking provenance. I wouldn't
> be comfortable using an attribute for governance decisions without
> knowing where it came from and who is asserting it. That's another
> reason to get the tag model in place first.
>
> In general, projecting labels from tags makes sense to me. The tag
> model should capture provenance and ownership, along with permissions
> for reading and changing tags. We'd still need to work out what losing
> that provenance in the label projection means for engines, given that
> IRC labels are string-to-string key-value pairs.
>
> Yufei
>
> On Sun, Oct 18, 2026 at 3:16 PM Andrei Tserakhau via dev
> <de...@polaris.apache.org> wrote:
> >
> > Hi JB,
> >
> > Thanks, agree on all three.
> >
> > 1/ Federated visibility. Fair point. The federation principal may see
> more
> > than an individual Polaris user should. I'll call that out in the design
> > and add a per-catalog option to suppress federated labels when needed.
> > 2/ Collisions. Agreed on strict by default. Since the engine has no
> > provenance on the wire, failing is safer. Override can stay as an
> explicit
> > opt-in.
> > 3/ Cache invalidation. Ancestor tag writes are the tricky case. Rather
> than
> > fan out invalidations to every table, I'd start with a catalog-level tag
> > revision: any tag write bumps it, and cached entries are recomputed
> lazily.
> > Tag writes are rare enough that this should be fine initially.
> >
> > On schema evolution, field IDs mostly solve it. The IRC spec isn't
> > opinionated here: field-id refers to the table's schema, not only the
> > current one, so a catalog may either emit or omit labels for dropped
> > columns. For Polaris I'd omit them, which matches the Tag design hiding
> > assignments on removed field IDs. Renames keep their labels, and
> re-adding
> > the same name gets a new field ID so old labels don't carry over. Nested
> > fields stay out of scope for v1, same as Tags.
> >
> > Thanks,
> > Andrei
> >
> > On Wed, Oct 14, 2026 at 5:13 PM Jean-Baptiste Onofré <jb...@nanthrax.net>
> > wrote:
> >
> > > Hi all,
> > >
> > > I re-iterate what I said earlier: my preference is clearly on building
> > > labels as read-only projection over tags.
> > >
> > > I agree with the proposals on permissions and gating. Reusing the tag
> > > visibility rules, with no label specific privilege, means table read
> access
> > > alone exposes nothing new/extra. Gating behind a per-catalog flag
> (default
> > > off for now) sounds good to me.
> > >
> > > I have three comments:
> > > - About federated label visibility, I understand the argument that the
> > > source catalog already filtered what it exposes to the federation
> > > principal. In practice, that principal is often a single service
> identity.
> > > Every Polaris user who can read the federated table would then see
> > > everything it can see, which could be more than they should. I would
> love
> > > the design to say this explicitly as a deployment consideration. Maybe
> we
> > > should suppress pass through of federated labels with a per-catalog
> option.
> > > - I share Sung's point about collision. With no "provenance," an engine
> > > can't tell that a value was overridden. I think it would be better to
> have
> > > strict as the default, in addition of a warning.
> > > - I'm happy to see that Andrei is considering caching. Caching
> effective
> > > tags per table and applying the caller-specific filter afterwards is
> > > reasonable. The "challenge" is how the invalidation should work. A tag
> set
> > > on a namespace or catalog affects every table below it. So, we have to
> > > careful design the cache eviction.
> > >
> > > I have one question for you guys: how should per-field labels behave
> when
> > > a schema evolves? For example, when a column is dropped. Field-id key
> > > helps, but the expected behavior should be "clear".
> > >
> > > Regards
> > > JB
> > >
> > > On Tue, Oct 13, 2026 at 6:23 PM Andrei Tserakhau via dev <
> > > dev@polaris.apache.org> wrote:
> > >
> > >> Hi Sung,
> > >>
> > >> Thanks, both good points.
> > >>
> > >> On federated labels, I’d keep them visible to anyone who can read the
> > >> federated table. The source catalog already decided what to expose to
> the
> > >> federation principal, and Polaris doesn’t really have enough context
> to
> > >> re-apply its own tag permissions on top. So the boundary is the
> federation
> > >> connection plus normal table access in Polaris.
> > >>
> > >> On collisions, I agree silent override is the bad case. I’d make this
> > >> configurable per catalog:
> > >>
> > >> -
> > >>
> > >> override (default): native value wins, but Polaris records the
> conflict
> > >> and shows it clearly in UI/logs.
> > >> -
> > >>
> > >> strict: collision is an error and loadTable fails.
> > >>
> > >> I’d also catch this when the native tag is created. If the same key
> > >> already
> > >> comes from the source, warn there instead of waiting until read time.
> > >>
> > >> One limitation: the labels wire has no provenance, so the engine can’t
> > >> tell
> > >> that a value was overridden. That signal has to stay on the Polaris
> side,
> > >> or strict mode has to reject the load.
> > >>
> > >> Thanks,
> > >> Andrei
> > >>
> > >> On Tue, Oct 13, 2026 at 5:59 PM Sung Yun <su...@apache.org> wrote:
> > >>
> > >> > On permissions: I agree that reducing the number of privileges makes
> > >> > sense. I'd also like us to think about how this applies to federated
> > >> labels.
> > >> > Here are the label sources we've talked about so far:
> > >> > - Tags (internal to Polaris)
> > >> > - Federated labels
> > >> > - Possibly others
> > >> >
> > >> > If tag permissions decide which labels show up in
> loadTable/loadView,
> > >> what
> > >> > happens to federated labels? Should they always be visible, or
> should
> > >> > Polaris have a permission that controls whether they're shown?
> > >> >
> > >> > On collisions: I'm concerned that a simple "native wins" approach
> could
> > >> > make the engine behave differently without anyone noticing.
> > >> >
> > >> > How much this matters depends on what the labels are used for. Take
> data
> > >> > governance: if the native label silently wins, the policy applied
> to a
> > >> > table could differ depending on whether it's accessed through the
> source
> > >> > catalog or the federated catalog. The engine would then pick up that
> > >> > difference with no signal that anything changed.
> > >> > To prevent this, I'd suggest we consider a louder failure mode, or
> at
> > >> > least logging when a collision happens.
> > >> >
> > >> > Cheers,
> > >> > Sung
> > >> >
> > >> > On 2026/10/12 10:48:49 Andrei Tserakhau via dev wrote:
> > >> > > Hi JB,
> > >> > >
> > >> > > Thanks, good to keep the Glasgow conversation going. Glad we're
> > >> aligned
> > >> > on
> > >> > > opt B.
> > >> > >
> > >> > > On your questions:
> > >> > >
> > >> > > 1/ Permissions / leakage: I'd reuse the existing tag visibility
> rules
> > >> > > rather than add a label-specific privilege. On `loadTable` /
> > >> `loadView`,
> > >> > > labels would only include tags the caller is already allowed to
> see
> > >> > through
> > >> > > the Tag API. Table access alone would not expose anything extra.
> > >> > >
> > >> > > 2/ Performance: Agreed, `loadTable` is too hot to resolve
> inheritance
> > >> on
> > >> > > every call. I'd cache the effective tags per table, invalidate on
> tag
> > >> > > changes, then apply the caller-specific visibility filter on top.
> That
> > >> > > should keep the added cost small.
> > >> > >
> > >> > > 3/ Default vs gated: I'd gate it initially with something like
> > >> > > `polaris.label.enabled` per catalog, default off. We can move
> toward
> > >> > > on-by-default later once the behavior and cost are proven.
> > >> > >
> > >> > > Best,
> > >> > > Andrei
> > >> > >
> > >> > > On Mon, Oct 12, 2026 at 9:43 AM Jean-Baptiste Onofré <
> jb@nanthrax.net
> > >> >
> > >> > > wrote:
> > >> > >
> > >> > > > Hi Andrei
> > >> > > >
> > >> > > > Thanks for starting this thread after our discussion during
> > >> Lakehouse
> > >> > > > Day/CommunityOverCode in Glasgow.
> > >> > > >
> > >> > > > I'm +1 to option B (labels as a read-only projection over tags).
> > >> Tags
> > >> > > > already have definitions, allowed values, inheritance and
> reverse
> > >> > lookup,
> > >> > > > and both models are keyed by Iceberg field-id. A separate labels
> > >> entity
> > >> > > > would give us two source of truth to reconcile, with no benefit
> > >> imho.
> > >> > > >
> > >> > > > The tag work isn't merged yet, so it's cheap (good timing :)) to
> > >> > reserve
> > >> > > > what the consumer role needs. Postponing this later would be
> much
> > >> more
> > >> > > > painful. I would keep the actual federation impl out of the
> first
> > >> tag
> > >> > PR.
> > >> > > >
> > >> > > > About collisions, "native wins" is reasonable. Polaris is the
> > >> asserting
> > >> > > > catalog at the point of access, so I'm fine with that rule.
> > >> > > >
> > >> > > > I have a few questions:
> > >> > > > - We have to be careful that tag-definition visibility
> (permission)
> > >> > > > doesn't leak through labels. Do we plan to see labels on
> > >> > loadTable/loadView
> > >> > > > relying on the table read privileges? Or do we want specific
> > >> > privileges for
> > >> > > > label/tag?
> > >> > > > - Resolving tags with inheritence on every loadTable can be
> > >> significant
> > >> > > > for performence. What are your thoughts about that? Opt caching?
> > >> > > > - Do we want to have label emitted by default, or do you want to
> > >> guate
> > >> > by
> > >> > > > catalog configuration (polaris.label.enabled=on)?
> > >> > > >
> > >> > > > Thanks!
> > >> > > > Regards
> > >> > > > JB
> > >> > > >
> > >> > > > On Sun, Oct 11, 2026 at 11:26 AM Andrei Tserakhau via dev <
> > >> > > > dev@polaris.apache.org> wrote:
> > >> > > >
> > >> > > >> Hi all,
> > >> > > >>
> > >> > > >> Now that the IRC "labels" field has merged in Iceberg Spec
> ([0])
> > >> and
> > >> > the
> > >> > > >> Polaris Tag work is close ([1]), I'd like to open a thread on
> how
> > >> > Polaris
> > >> > > >> should support labels.
> > >> > > >>
> > >> > > >> There are two ways Polaris could do labels:
> > >> > > >>
> > >> > > >> A) Labels as a separate entity - their own definitions/store,
> > >> > parallel to
> > >> > > >> Tags.
> > >> > > >> B) Labels as a projection over Tags - read-only IRC view /
> > >> projection
> > >> > of
> > >> > > >> the existing tag model.
> > >> > > >>
> > >> > > >> I propose B. Tags already are the structured model:
> definitions,
> > >> > > >> assignments, allowed values, inheritance, reverse lookup. IRC
> > >> labels
> > >> > are
> > >> > > >> designed as the flat read surface of such models (object-level
> > >> > key/values
> > >> > > >> plus per-field labels by field-id). A separate labels entity
> would
> > >> > > >> duplicate the tag model and create two sources of truth to
> > >> reconcile;
> > >> > a
> > >> > > >> projection keeps one model with two surfaces, a structured
> > >> authoring
> > >> > API
> > >> > > >> and an interoperable flat read field. Column identity already
> lines
> > >> > up:
> > >> > > >> Tags use the Iceberg field-id, and IRC labels fields are keyed
> by
> > >> > > >> field-id.
> > >> > > >>
> > >> > > >> Given B, a Polaris catalog plays two roles:
> > >> > > >>
> > >> > > >> 1. Producer. Polaris resolves a target's effective tags
> > >> (inheritance
> > >> > > >> applied, closest-wins) and projects them into IRC labels on
> > >> > > >> loadTable/loadView. The Tag API stays the authoring/management
> > >> > surface and
> > >> > > >> labels is the read projection for IRC compliant engines.
> > >> > > >>
> > >> > > >> 2. Consumer. When Polaris federates a foreign IRC catalog, it
> reads
> > >> > that
> > >> > > >> catalog's labels and stores them as tags owned by the source
> > >> catalog:
> > >> > > >> read-only in Polaris and clearly marked as foreign. A Polaris
> user
> > >> > cannot
> > >> > > >> edit them (they change only when Polaris re-syncs from the
> source)
> > >> and
> > >> > > >> they
> > >> > > >> stay separate from Polaris's own natively-authored tags. That
> is
> > >> how a
> > >> > > >> foreign catalog's metadata becomes usable in Polaris without
> > >> > pretending it
> > >> > > >> is local.
> > >> > > >>
> > >> > > >> Mostly I'd like the community read on whether
> projection-over-tags
> > >> > feels
> > >> > > >> right, and whether the producer/consumer split is worth
> keeping in
> > >> > mind in
> > >> > > >> the Tag design so the contract leaves room for it. Would like
> to
> > >> hear
> > >> > if
> > >> > > >> this framing is wrong, or where a separate entity would
> actually
> > >> serve
> > >> > > >> better.
> > >> > > >>
> > >> > > >> Thanks,
> > >> > > >> Andrei
> > >> > > >>
> > >> > > >> [0] IRC Labels spec PR -
> > >> https://github.com/apache/iceberg/pull/15750
> > >> > > >> [1] Tags discussion thread -
> > >> > > >>
> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
> > >> > > >>
> > >> > > >
> > >> > >
> > >> >
> > >>
> > >
>
Re: [DISCUSS] IRC Labels in Polaris
Posted by Yufei Gu <fl...@gmail.com>.
Thanks for bringing this up, Andrei! Great discussion, everyone! Many
good questions were asked in the thread.
Since tags are still in progress, I'd prefer to get that work in first
and then come back to labels. That should give us a better
understanding of how the two fit together, esp. with federation, where
values can conflict or their meaning can change across catalogs.
> One limitation: the labels wire has no provenance
Andrei makes a good point about labels lacking provenance. I wouldn't
be comfortable using an attribute for governance decisions without
knowing where it came from and who is asserting it. That's another
reason to get the tag model in place first.
In general, projecting labels from tags makes sense to me. The tag
model should capture provenance and ownership, along with permissions
for reading and changing tags. We'd still need to work out what losing
that provenance in the label projection means for engines, given that
IRC labels are string-to-string key-value pairs.
Yufei
On Sun, Oct 18, 2026 at 3:16 PM Andrei Tserakhau via dev
<de...@polaris.apache.org> wrote:
>
> Hi JB,
>
> Thanks, agree on all three.
>
> 1/ Federated visibility. Fair point. The federation principal may see more
> than an individual Polaris user should. I'll call that out in the design
> and add a per-catalog option to suppress federated labels when needed.
> 2/ Collisions. Agreed on strict by default. Since the engine has no
> provenance on the wire, failing is safer. Override can stay as an explicit
> opt-in.
> 3/ Cache invalidation. Ancestor tag writes are the tricky case. Rather than
> fan out invalidations to every table, I'd start with a catalog-level tag
> revision: any tag write bumps it, and cached entries are recomputed lazily.
> Tag writes are rare enough that this should be fine initially.
>
> On schema evolution, field IDs mostly solve it. The IRC spec isn't
> opinionated here: field-id refers to the table's schema, not only the
> current one, so a catalog may either emit or omit labels for dropped
> columns. For Polaris I'd omit them, which matches the Tag design hiding
> assignments on removed field IDs. Renames keep their labels, and re-adding
> the same name gets a new field ID so old labels don't carry over. Nested
> fields stay out of scope for v1, same as Tags.
>
> Thanks,
> Andrei
>
> On Wed, Oct 14, 2026 at 5:13 PM Jean-Baptiste Onofré <jb...@nanthrax.net>
> wrote:
>
> > Hi all,
> >
> > I re-iterate what I said earlier: my preference is clearly on building
> > labels as read-only projection over tags.
> >
> > I agree with the proposals on permissions and gating. Reusing the tag
> > visibility rules, with no label specific privilege, means table read access
> > alone exposes nothing new/extra. Gating behind a per-catalog flag (default
> > off for now) sounds good to me.
> >
> > I have three comments:
> > - About federated label visibility, I understand the argument that the
> > source catalog already filtered what it exposes to the federation
> > principal. In practice, that principal is often a single service identity.
> > Every Polaris user who can read the federated table would then see
> > everything it can see, which could be more than they should. I would love
> > the design to say this explicitly as a deployment consideration. Maybe we
> > should suppress pass through of federated labels with a per-catalog option.
> > - I share Sung's point about collision. With no "provenance," an engine
> > can't tell that a value was overridden. I think it would be better to have
> > strict as the default, in addition of a warning.
> > - I'm happy to see that Andrei is considering caching. Caching effective
> > tags per table and applying the caller-specific filter afterwards is
> > reasonable. The "challenge" is how the invalidation should work. A tag set
> > on a namespace or catalog affects every table below it. So, we have to
> > careful design the cache eviction.
> >
> > I have one question for you guys: how should per-field labels behave when
> > a schema evolves? For example, when a column is dropped. Field-id key
> > helps, but the expected behavior should be "clear".
> >
> > Regards
> > JB
> >
> > On Tue, Oct 13, 2026 at 6:23 PM Andrei Tserakhau via dev <
> > dev@polaris.apache.org> wrote:
> >
> >> Hi Sung,
> >>
> >> Thanks, both good points.
> >>
> >> On federated labels, I’d keep them visible to anyone who can read the
> >> federated table. The source catalog already decided what to expose to the
> >> federation principal, and Polaris doesn’t really have enough context to
> >> re-apply its own tag permissions on top. So the boundary is the federation
> >> connection plus normal table access in Polaris.
> >>
> >> On collisions, I agree silent override is the bad case. I’d make this
> >> configurable per catalog:
> >>
> >> -
> >>
> >> override (default): native value wins, but Polaris records the conflict
> >> and shows it clearly in UI/logs.
> >> -
> >>
> >> strict: collision is an error and loadTable fails.
> >>
> >> I’d also catch this when the native tag is created. If the same key
> >> already
> >> comes from the source, warn there instead of waiting until read time.
> >>
> >> One limitation: the labels wire has no provenance, so the engine can’t
> >> tell
> >> that a value was overridden. That signal has to stay on the Polaris side,
> >> or strict mode has to reject the load.
> >>
> >> Thanks,
> >> Andrei
> >>
> >> On Tue, Oct 13, 2026 at 5:59 PM Sung Yun <su...@apache.org> wrote:
> >>
> >> > On permissions: I agree that reducing the number of privileges makes
> >> > sense. I'd also like us to think about how this applies to federated
> >> labels.
> >> > Here are the label sources we've talked about so far:
> >> > - Tags (internal to Polaris)
> >> > - Federated labels
> >> > - Possibly others
> >> >
> >> > If tag permissions decide which labels show up in loadTable/loadView,
> >> what
> >> > happens to federated labels? Should they always be visible, or should
> >> > Polaris have a permission that controls whether they're shown?
> >> >
> >> > On collisions: I'm concerned that a simple "native wins" approach could
> >> > make the engine behave differently without anyone noticing.
> >> >
> >> > How much this matters depends on what the labels are used for. Take data
> >> > governance: if the native label silently wins, the policy applied to a
> >> > table could differ depending on whether it's accessed through the source
> >> > catalog or the federated catalog. The engine would then pick up that
> >> > difference with no signal that anything changed.
> >> > To prevent this, I'd suggest we consider a louder failure mode, or at
> >> > least logging when a collision happens.
> >> >
> >> > Cheers,
> >> > Sung
> >> >
> >> > On 2026/10/12 10:48:49 Andrei Tserakhau via dev wrote:
> >> > > Hi JB,
> >> > >
> >> > > Thanks, good to keep the Glasgow conversation going. Glad we're
> >> aligned
> >> > on
> >> > > opt B.
> >> > >
> >> > > On your questions:
> >> > >
> >> > > 1/ Permissions / leakage: I'd reuse the existing tag visibility rules
> >> > > rather than add a label-specific privilege. On `loadTable` /
> >> `loadView`,
> >> > > labels would only include tags the caller is already allowed to see
> >> > through
> >> > > the Tag API. Table access alone would not expose anything extra.
> >> > >
> >> > > 2/ Performance: Agreed, `loadTable` is too hot to resolve inheritance
> >> on
> >> > > every call. I'd cache the effective tags per table, invalidate on tag
> >> > > changes, then apply the caller-specific visibility filter on top. That
> >> > > should keep the added cost small.
> >> > >
> >> > > 3/ Default vs gated: I'd gate it initially with something like
> >> > > `polaris.label.enabled` per catalog, default off. We can move toward
> >> > > on-by-default later once the behavior and cost are proven.
> >> > >
> >> > > Best,
> >> > > Andrei
> >> > >
> >> > > On Mon, Oct 12, 2026 at 9:43 AM Jean-Baptiste Onofré <jb@nanthrax.net
> >> >
> >> > > wrote:
> >> > >
> >> > > > Hi Andrei
> >> > > >
> >> > > > Thanks for starting this thread after our discussion during
> >> Lakehouse
> >> > > > Day/CommunityOverCode in Glasgow.
> >> > > >
> >> > > > I'm +1 to option B (labels as a read-only projection over tags).
> >> Tags
> >> > > > already have definitions, allowed values, inheritance and reverse
> >> > lookup,
> >> > > > and both models are keyed by Iceberg field-id. A separate labels
> >> entity
> >> > > > would give us two source of truth to reconcile, with no benefit
> >> imho.
> >> > > >
> >> > > > The tag work isn't merged yet, so it's cheap (good timing :)) to
> >> > reserve
> >> > > > what the consumer role needs. Postponing this later would be much
> >> more
> >> > > > painful. I would keep the actual federation impl out of the first
> >> tag
> >> > PR.
> >> > > >
> >> > > > About collisions, "native wins" is reasonable. Polaris is the
> >> asserting
> >> > > > catalog at the point of access, so I'm fine with that rule.
> >> > > >
> >> > > > I have a few questions:
> >> > > > - We have to be careful that tag-definition visibility (permission)
> >> > > > doesn't leak through labels. Do we plan to see labels on
> >> > loadTable/loadView
> >> > > > relying on the table read privileges? Or do we want specific
> >> > privileges for
> >> > > > label/tag?
> >> > > > - Resolving tags with inheritence on every loadTable can be
> >> significant
> >> > > > for performence. What are your thoughts about that? Opt caching?
> >> > > > - Do we want to have label emitted by default, or do you want to
> >> guate
> >> > by
> >> > > > catalog configuration (polaris.label.enabled=on)?
> >> > > >
> >> > > > Thanks!
> >> > > > Regards
> >> > > > JB
> >> > > >
> >> > > > On Sun, Oct 11, 2026 at 11:26 AM Andrei Tserakhau via dev <
> >> > > > dev@polaris.apache.org> wrote:
> >> > > >
> >> > > >> Hi all,
> >> > > >>
> >> > > >> Now that the IRC "labels" field has merged in Iceberg Spec ([0])
> >> and
> >> > the
> >> > > >> Polaris Tag work is close ([1]), I'd like to open a thread on how
> >> > Polaris
> >> > > >> should support labels.
> >> > > >>
> >> > > >> There are two ways Polaris could do labels:
> >> > > >>
> >> > > >> A) Labels as a separate entity - their own definitions/store,
> >> > parallel to
> >> > > >> Tags.
> >> > > >> B) Labels as a projection over Tags - read-only IRC view /
> >> projection
> >> > of
> >> > > >> the existing tag model.
> >> > > >>
> >> > > >> I propose B. Tags already are the structured model: definitions,
> >> > > >> assignments, allowed values, inheritance, reverse lookup. IRC
> >> labels
> >> > are
> >> > > >> designed as the flat read surface of such models (object-level
> >> > key/values
> >> > > >> plus per-field labels by field-id). A separate labels entity would
> >> > > >> duplicate the tag model and create two sources of truth to
> >> reconcile;
> >> > a
> >> > > >> projection keeps one model with two surfaces, a structured
> >> authoring
> >> > API
> >> > > >> and an interoperable flat read field. Column identity already lines
> >> > up:
> >> > > >> Tags use the Iceberg field-id, and IRC labels fields are keyed by
> >> > > >> field-id.
> >> > > >>
> >> > > >> Given B, a Polaris catalog plays two roles:
> >> > > >>
> >> > > >> 1. Producer. Polaris resolves a target's effective tags
> >> (inheritance
> >> > > >> applied, closest-wins) and projects them into IRC labels on
> >> > > >> loadTable/loadView. The Tag API stays the authoring/management
> >> > surface and
> >> > > >> labels is the read projection for IRC compliant engines.
> >> > > >>
> >> > > >> 2. Consumer. When Polaris federates a foreign IRC catalog, it reads
> >> > that
> >> > > >> catalog's labels and stores them as tags owned by the source
> >> catalog:
> >> > > >> read-only in Polaris and clearly marked as foreign. A Polaris user
> >> > cannot
> >> > > >> edit them (they change only when Polaris re-syncs from the source)
> >> and
> >> > > >> they
> >> > > >> stay separate from Polaris's own natively-authored tags. That is
> >> how a
> >> > > >> foreign catalog's metadata becomes usable in Polaris without
> >> > pretending it
> >> > > >> is local.
> >> > > >>
> >> > > >> Mostly I'd like the community read on whether projection-over-tags
> >> > feels
> >> > > >> right, and whether the producer/consumer split is worth keeping in
> >> > mind in
> >> > > >> the Tag design so the contract leaves room for it. Would like to
> >> hear
> >> > if
> >> > > >> this framing is wrong, or where a separate entity would actually
> >> serve
> >> > > >> better.
> >> > > >>
> >> > > >> Thanks,
> >> > > >> Andrei
> >> > > >>
> >> > > >> [0] IRC Labels spec PR -
> >> https://github.com/apache/iceberg/pull/15750
> >> > > >> [1] Tags discussion thread -
> >> > > >> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
> >> > > >>
> >> > > >
> >> > >
> >> >
> >>
> >
Re: [DISCUSS] IRC Labels in Polaris
Posted by Andrei Tserakhau via dev <de...@polaris.apache.org>.
Hi JB,
Thanks, agree on all three.
1/ Federated visibility. Fair point. The federation principal may see more
than an individual Polaris user should. I'll call that out in the design
and add a per-catalog option to suppress federated labels when needed.
2/ Collisions. Agreed on strict by default. Since the engine has no
provenance on the wire, failing is safer. Override can stay as an explicit
opt-in.
3/ Cache invalidation. Ancestor tag writes are the tricky case. Rather than
fan out invalidations to every table, I'd start with a catalog-level tag
revision: any tag write bumps it, and cached entries are recomputed lazily.
Tag writes are rare enough that this should be fine initially.
On schema evolution, field IDs mostly solve it. The IRC spec isn't
opinionated here: field-id refers to the table's schema, not only the
current one, so a catalog may either emit or omit labels for dropped
columns. For Polaris I'd omit them, which matches the Tag design hiding
assignments on removed field IDs. Renames keep their labels, and re-adding
the same name gets a new field ID so old labels don't carry over. Nested
fields stay out of scope for v1, same as Tags.
Thanks,
Andrei
On Wed, Oct 14, 2026 at 5:13 PM Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:
> Hi all,
>
> I re-iterate what I said earlier: my preference is clearly on building
> labels as read-only projection over tags.
>
> I agree with the proposals on permissions and gating. Reusing the tag
> visibility rules, with no label specific privilege, means table read access
> alone exposes nothing new/extra. Gating behind a per-catalog flag (default
> off for now) sounds good to me.
>
> I have three comments:
> - About federated label visibility, I understand the argument that the
> source catalog already filtered what it exposes to the federation
> principal. In practice, that principal is often a single service identity.
> Every Polaris user who can read the federated table would then see
> everything it can see, which could be more than they should. I would love
> the design to say this explicitly as a deployment consideration. Maybe we
> should suppress pass through of federated labels with a per-catalog option.
> - I share Sung's point about collision. With no "provenance," an engine
> can't tell that a value was overridden. I think it would be better to have
> strict as the default, in addition of a warning.
> - I'm happy to see that Andrei is considering caching. Caching effective
> tags per table and applying the caller-specific filter afterwards is
> reasonable. The "challenge" is how the invalidation should work. A tag set
> on a namespace or catalog affects every table below it. So, we have to
> careful design the cache eviction.
>
> I have one question for you guys: how should per-field labels behave when
> a schema evolves? For example, when a column is dropped. Field-id key
> helps, but the expected behavior should be "clear".
>
> Regards
> JB
>
> On Tue, Oct 13, 2026 at 6:23 PM Andrei Tserakhau via dev <
> dev@polaris.apache.org> wrote:
>
>> Hi Sung,
>>
>> Thanks, both good points.
>>
>> On federated labels, I’d keep them visible to anyone who can read the
>> federated table. The source catalog already decided what to expose to the
>> federation principal, and Polaris doesn’t really have enough context to
>> re-apply its own tag permissions on top. So the boundary is the federation
>> connection plus normal table access in Polaris.
>>
>> On collisions, I agree silent override is the bad case. I’d make this
>> configurable per catalog:
>>
>> -
>>
>> override (default): native value wins, but Polaris records the conflict
>> and shows it clearly in UI/logs.
>> -
>>
>> strict: collision is an error and loadTable fails.
>>
>> I’d also catch this when the native tag is created. If the same key
>> already
>> comes from the source, warn there instead of waiting until read time.
>>
>> One limitation: the labels wire has no provenance, so the engine can’t
>> tell
>> that a value was overridden. That signal has to stay on the Polaris side,
>> or strict mode has to reject the load.
>>
>> Thanks,
>> Andrei
>>
>> On Tue, Oct 13, 2026 at 5:59 PM Sung Yun <su...@apache.org> wrote:
>>
>> > On permissions: I agree that reducing the number of privileges makes
>> > sense. I'd also like us to think about how this applies to federated
>> labels.
>> > Here are the label sources we've talked about so far:
>> > - Tags (internal to Polaris)
>> > - Federated labels
>> > - Possibly others
>> >
>> > If tag permissions decide which labels show up in loadTable/loadView,
>> what
>> > happens to federated labels? Should they always be visible, or should
>> > Polaris have a permission that controls whether they're shown?
>> >
>> > On collisions: I'm concerned that a simple "native wins" approach could
>> > make the engine behave differently without anyone noticing.
>> >
>> > How much this matters depends on what the labels are used for. Take data
>> > governance: if the native label silently wins, the policy applied to a
>> > table could differ depending on whether it's accessed through the source
>> > catalog or the federated catalog. The engine would then pick up that
>> > difference with no signal that anything changed.
>> > To prevent this, I'd suggest we consider a louder failure mode, or at
>> > least logging when a collision happens.
>> >
>> > Cheers,
>> > Sung
>> >
>> > On 2026/10/12 10:48:49 Andrei Tserakhau via dev wrote:
>> > > Hi JB,
>> > >
>> > > Thanks, good to keep the Glasgow conversation going. Glad we're
>> aligned
>> > on
>> > > opt B.
>> > >
>> > > On your questions:
>> > >
>> > > 1/ Permissions / leakage: I'd reuse the existing tag visibility rules
>> > > rather than add a label-specific privilege. On `loadTable` /
>> `loadView`,
>> > > labels would only include tags the caller is already allowed to see
>> > through
>> > > the Tag API. Table access alone would not expose anything extra.
>> > >
>> > > 2/ Performance: Agreed, `loadTable` is too hot to resolve inheritance
>> on
>> > > every call. I'd cache the effective tags per table, invalidate on tag
>> > > changes, then apply the caller-specific visibility filter on top. That
>> > > should keep the added cost small.
>> > >
>> > > 3/ Default vs gated: I'd gate it initially with something like
>> > > `polaris.label.enabled` per catalog, default off. We can move toward
>> > > on-by-default later once the behavior and cost are proven.
>> > >
>> > > Best,
>> > > Andrei
>> > >
>> > > On Mon, Oct 12, 2026 at 9:43 AM Jean-Baptiste Onofré <jb@nanthrax.net
>> >
>> > > wrote:
>> > >
>> > > > Hi Andrei
>> > > >
>> > > > Thanks for starting this thread after our discussion during
>> Lakehouse
>> > > > Day/CommunityOverCode in Glasgow.
>> > > >
>> > > > I'm +1 to option B (labels as a read-only projection over tags).
>> Tags
>> > > > already have definitions, allowed values, inheritance and reverse
>> > lookup,
>> > > > and both models are keyed by Iceberg field-id. A separate labels
>> entity
>> > > > would give us two source of truth to reconcile, with no benefit
>> imho.
>> > > >
>> > > > The tag work isn't merged yet, so it's cheap (good timing :)) to
>> > reserve
>> > > > what the consumer role needs. Postponing this later would be much
>> more
>> > > > painful. I would keep the actual federation impl out of the first
>> tag
>> > PR.
>> > > >
>> > > > About collisions, "native wins" is reasonable. Polaris is the
>> asserting
>> > > > catalog at the point of access, so I'm fine with that rule.
>> > > >
>> > > > I have a few questions:
>> > > > - We have to be careful that tag-definition visibility (permission)
>> > > > doesn't leak through labels. Do we plan to see labels on
>> > loadTable/loadView
>> > > > relying on the table read privileges? Or do we want specific
>> > privileges for
>> > > > label/tag?
>> > > > - Resolving tags with inheritence on every loadTable can be
>> significant
>> > > > for performence. What are your thoughts about that? Opt caching?
>> > > > - Do we want to have label emitted by default, or do you want to
>> guate
>> > by
>> > > > catalog configuration (polaris.label.enabled=on)?
>> > > >
>> > > > Thanks!
>> > > > Regards
>> > > > JB
>> > > >
>> > > > On Sun, Oct 11, 2026 at 11:26 AM Andrei Tserakhau via dev <
>> > > > dev@polaris.apache.org> wrote:
>> > > >
>> > > >> Hi all,
>> > > >>
>> > > >> Now that the IRC "labels" field has merged in Iceberg Spec ([0])
>> and
>> > the
>> > > >> Polaris Tag work is close ([1]), I'd like to open a thread on how
>> > Polaris
>> > > >> should support labels.
>> > > >>
>> > > >> There are two ways Polaris could do labels:
>> > > >>
>> > > >> A) Labels as a separate entity - their own definitions/store,
>> > parallel to
>> > > >> Tags.
>> > > >> B) Labels as a projection over Tags - read-only IRC view /
>> projection
>> > of
>> > > >> the existing tag model.
>> > > >>
>> > > >> I propose B. Tags already are the structured model: definitions,
>> > > >> assignments, allowed values, inheritance, reverse lookup. IRC
>> labels
>> > are
>> > > >> designed as the flat read surface of such models (object-level
>> > key/values
>> > > >> plus per-field labels by field-id). A separate labels entity would
>> > > >> duplicate the tag model and create two sources of truth to
>> reconcile;
>> > a
>> > > >> projection keeps one model with two surfaces, a structured
>> authoring
>> > API
>> > > >> and an interoperable flat read field. Column identity already lines
>> > up:
>> > > >> Tags use the Iceberg field-id, and IRC labels fields are keyed by
>> > > >> field-id.
>> > > >>
>> > > >> Given B, a Polaris catalog plays two roles:
>> > > >>
>> > > >> 1. Producer. Polaris resolves a target's effective tags
>> (inheritance
>> > > >> applied, closest-wins) and projects them into IRC labels on
>> > > >> loadTable/loadView. The Tag API stays the authoring/management
>> > surface and
>> > > >> labels is the read projection for IRC compliant engines.
>> > > >>
>> > > >> 2. Consumer. When Polaris federates a foreign IRC catalog, it reads
>> > that
>> > > >> catalog's labels and stores them as tags owned by the source
>> catalog:
>> > > >> read-only in Polaris and clearly marked as foreign. A Polaris user
>> > cannot
>> > > >> edit them (they change only when Polaris re-syncs from the source)
>> and
>> > > >> they
>> > > >> stay separate from Polaris's own natively-authored tags. That is
>> how a
>> > > >> foreign catalog's metadata becomes usable in Polaris without
>> > pretending it
>> > > >> is local.
>> > > >>
>> > > >> Mostly I'd like the community read on whether projection-over-tags
>> > feels
>> > > >> right, and whether the producer/consumer split is worth keeping in
>> > mind in
>> > > >> the Tag design so the contract leaves room for it. Would like to
>> hear
>> > if
>> > > >> this framing is wrong, or where a separate entity would actually
>> serve
>> > > >> better.
>> > > >>
>> > > >> Thanks,
>> > > >> Andrei
>> > > >>
>> > > >> [0] IRC Labels spec PR -
>> https://github.com/apache/iceberg/pull/15750
>> > > >> [1] Tags discussion thread -
>> > > >> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
>> > > >>
>> > > >
>> > >
>> >
>>
>
Re: [DISCUSS] IRC Labels in Polaris
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi all,
I re-iterate what I said earlier: my preference is clearly on building
labels as read-only projection over tags.
I agree with the proposals on permissions and gating. Reusing the tag
visibility rules, with no label specific privilege, means table read access
alone exposes nothing new/extra. Gating behind a per-catalog flag (default
off for now) sounds good to me.
I have three comments:
- About federated label visibility, I understand the argument that the
source catalog already filtered what it exposes to the federation
principal. In practice, that principal is often a single service identity.
Every Polaris user who can read the federated table would then see
everything it can see, which could be more than they should. I would love
the design to say this explicitly as a deployment consideration. Maybe we
should suppress pass through of federated labels with a per-catalog option.
- I share Sung's point about collision. With no "provenance," an engine
can't tell that a value was overridden. I think it would be better to have
strict as the default, in addition of a warning.
- I'm happy to see that Andrei is considering caching. Caching effective
tags per table and applying the caller-specific filter afterwards is
reasonable. The "challenge" is how the invalidation should work. A tag set
on a namespace or catalog affects every table below it. So, we have to
careful design the cache eviction.
I have one question for you guys: how should per-field labels behave when a
schema evolves? For example, when a column is dropped. Field-id key helps,
but the expected behavior should be "clear".
Regards
JB
On Tue, Oct 13, 2026 at 6:23 PM Andrei Tserakhau via dev <
dev@polaris.apache.org> wrote:
> Hi Sung,
>
> Thanks, both good points.
>
> On federated labels, I’d keep them visible to anyone who can read the
> federated table. The source catalog already decided what to expose to the
> federation principal, and Polaris doesn’t really have enough context to
> re-apply its own tag permissions on top. So the boundary is the federation
> connection plus normal table access in Polaris.
>
> On collisions, I agree silent override is the bad case. I’d make this
> configurable per catalog:
>
> -
>
> override (default): native value wins, but Polaris records the conflict
> and shows it clearly in UI/logs.
> -
>
> strict: collision is an error and loadTable fails.
>
> I’d also catch this when the native tag is created. If the same key already
> comes from the source, warn there instead of waiting until read time.
>
> One limitation: the labels wire has no provenance, so the engine can’t tell
> that a value was overridden. That signal has to stay on the Polaris side,
> or strict mode has to reject the load.
>
> Thanks,
> Andrei
>
> On Tue, Oct 13, 2026 at 5:59 PM Sung Yun <su...@apache.org> wrote:
>
> > On permissions: I agree that reducing the number of privileges makes
> > sense. I'd also like us to think about how this applies to federated
> labels.
> > Here are the label sources we've talked about so far:
> > - Tags (internal to Polaris)
> > - Federated labels
> > - Possibly others
> >
> > If tag permissions decide which labels show up in loadTable/loadView,
> what
> > happens to federated labels? Should they always be visible, or should
> > Polaris have a permission that controls whether they're shown?
> >
> > On collisions: I'm concerned that a simple "native wins" approach could
> > make the engine behave differently without anyone noticing.
> >
> > How much this matters depends on what the labels are used for. Take data
> > governance: if the native label silently wins, the policy applied to a
> > table could differ depending on whether it's accessed through the source
> > catalog or the federated catalog. The engine would then pick up that
> > difference with no signal that anything changed.
> > To prevent this, I'd suggest we consider a louder failure mode, or at
> > least logging when a collision happens.
> >
> > Cheers,
> > Sung
> >
> > On 2026/10/12 10:48:49 Andrei Tserakhau via dev wrote:
> > > Hi JB,
> > >
> > > Thanks, good to keep the Glasgow conversation going. Glad we're aligned
> > on
> > > opt B.
> > >
> > > On your questions:
> > >
> > > 1/ Permissions / leakage: I'd reuse the existing tag visibility rules
> > > rather than add a label-specific privilege. On `loadTable` /
> `loadView`,
> > > labels would only include tags the caller is already allowed to see
> > through
> > > the Tag API. Table access alone would not expose anything extra.
> > >
> > > 2/ Performance: Agreed, `loadTable` is too hot to resolve inheritance
> on
> > > every call. I'd cache the effective tags per table, invalidate on tag
> > > changes, then apply the caller-specific visibility filter on top. That
> > > should keep the added cost small.
> > >
> > > 3/ Default vs gated: I'd gate it initially with something like
> > > `polaris.label.enabled` per catalog, default off. We can move toward
> > > on-by-default later once the behavior and cost are proven.
> > >
> > > Best,
> > > Andrei
> > >
> > > On Mon, Oct 12, 2026 at 9:43 AM Jean-Baptiste Onofré <jb...@nanthrax.net>
> > > wrote:
> > >
> > > > Hi Andrei
> > > >
> > > > Thanks for starting this thread after our discussion during Lakehouse
> > > > Day/CommunityOverCode in Glasgow.
> > > >
> > > > I'm +1 to option B (labels as a read-only projection over tags). Tags
> > > > already have definitions, allowed values, inheritance and reverse
> > lookup,
> > > > and both models are keyed by Iceberg field-id. A separate labels
> entity
> > > > would give us two source of truth to reconcile, with no benefit imho.
> > > >
> > > > The tag work isn't merged yet, so it's cheap (good timing :)) to
> > reserve
> > > > what the consumer role needs. Postponing this later would be much
> more
> > > > painful. I would keep the actual federation impl out of the first tag
> > PR.
> > > >
> > > > About collisions, "native wins" is reasonable. Polaris is the
> asserting
> > > > catalog at the point of access, so I'm fine with that rule.
> > > >
> > > > I have a few questions:
> > > > - We have to be careful that tag-definition visibility (permission)
> > > > doesn't leak through labels. Do we plan to see labels on
> > loadTable/loadView
> > > > relying on the table read privileges? Or do we want specific
> > privileges for
> > > > label/tag?
> > > > - Resolving tags with inheritence on every loadTable can be
> significant
> > > > for performence. What are your thoughts about that? Opt caching?
> > > > - Do we want to have label emitted by default, or do you want to
> guate
> > by
> > > > catalog configuration (polaris.label.enabled=on)?
> > > >
> > > > Thanks!
> > > > Regards
> > > > JB
> > > >
> > > > On Sun, Oct 11, 2026 at 11:26 AM Andrei Tserakhau via dev <
> > > > dev@polaris.apache.org> wrote:
> > > >
> > > >> Hi all,
> > > >>
> > > >> Now that the IRC "labels" field has merged in Iceberg Spec ([0]) and
> > the
> > > >> Polaris Tag work is close ([1]), I'd like to open a thread on how
> > Polaris
> > > >> should support labels.
> > > >>
> > > >> There are two ways Polaris could do labels:
> > > >>
> > > >> A) Labels as a separate entity - their own definitions/store,
> > parallel to
> > > >> Tags.
> > > >> B) Labels as a projection over Tags - read-only IRC view /
> projection
> > of
> > > >> the existing tag model.
> > > >>
> > > >> I propose B. Tags already are the structured model: definitions,
> > > >> assignments, allowed values, inheritance, reverse lookup. IRC labels
> > are
> > > >> designed as the flat read surface of such models (object-level
> > key/values
> > > >> plus per-field labels by field-id). A separate labels entity would
> > > >> duplicate the tag model and create two sources of truth to
> reconcile;
> > a
> > > >> projection keeps one model with two surfaces, a structured
> authoring
> > API
> > > >> and an interoperable flat read field. Column identity already lines
> > up:
> > > >> Tags use the Iceberg field-id, and IRC labels fields are keyed by
> > > >> field-id.
> > > >>
> > > >> Given B, a Polaris catalog plays two roles:
> > > >>
> > > >> 1. Producer. Polaris resolves a target's effective tags (inheritance
> > > >> applied, closest-wins) and projects them into IRC labels on
> > > >> loadTable/loadView. The Tag API stays the authoring/management
> > surface and
> > > >> labels is the read projection for IRC compliant engines.
> > > >>
> > > >> 2. Consumer. When Polaris federates a foreign IRC catalog, it reads
> > that
> > > >> catalog's labels and stores them as tags owned by the source
> catalog:
> > > >> read-only in Polaris and clearly marked as foreign. A Polaris user
> > cannot
> > > >> edit them (they change only when Polaris re-syncs from the source)
> and
> > > >> they
> > > >> stay separate from Polaris's own natively-authored tags. That is
> how a
> > > >> foreign catalog's metadata becomes usable in Polaris without
> > pretending it
> > > >> is local.
> > > >>
> > > >> Mostly I'd like the community read on whether projection-over-tags
> > feels
> > > >> right, and whether the producer/consumer split is worth keeping in
> > mind in
> > > >> the Tag design so the contract leaves room for it. Would like to
> hear
> > if
> > > >> this framing is wrong, or where a separate entity would actually
> serve
> > > >> better.
> > > >>
> > > >> Thanks,
> > > >> Andrei
> > > >>
> > > >> [0] IRC Labels spec PR -
> https://github.com/apache/iceberg/pull/15750
> > > >> [1] Tags discussion thread -
> > > >> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
> > > >>
> > > >
> > >
> >
>
Re: [DISCUSS] IRC Labels in Polaris
Posted by Andrei Tserakhau via dev <de...@polaris.apache.org>.
Hi Sung,
Thanks, both good points.
On federated labels, I’d keep them visible to anyone who can read the
federated table. The source catalog already decided what to expose to the
federation principal, and Polaris doesn’t really have enough context to
re-apply its own tag permissions on top. So the boundary is the federation
connection plus normal table access in Polaris.
On collisions, I agree silent override is the bad case. I’d make this
configurable per catalog:
-
override (default): native value wins, but Polaris records the conflict
and shows it clearly in UI/logs.
-
strict: collision is an error and loadTable fails.
I’d also catch this when the native tag is created. If the same key already
comes from the source, warn there instead of waiting until read time.
One limitation: the labels wire has no provenance, so the engine can’t tell
that a value was overridden. That signal has to stay on the Polaris side,
or strict mode has to reject the load.
Thanks,
Andrei
On Tue, Oct 13, 2026 at 5:59 PM Sung Yun <su...@apache.org> wrote:
> On permissions: I agree that reducing the number of privileges makes
> sense. I'd also like us to think about how this applies to federated labels.
> Here are the label sources we've talked about so far:
> - Tags (internal to Polaris)
> - Federated labels
> - Possibly others
>
> If tag permissions decide which labels show up in loadTable/loadView, what
> happens to federated labels? Should they always be visible, or should
> Polaris have a permission that controls whether they're shown?
>
> On collisions: I'm concerned that a simple "native wins" approach could
> make the engine behave differently without anyone noticing.
>
> How much this matters depends on what the labels are used for. Take data
> governance: if the native label silently wins, the policy applied to a
> table could differ depending on whether it's accessed through the source
> catalog or the federated catalog. The engine would then pick up that
> difference with no signal that anything changed.
> To prevent this, I'd suggest we consider a louder failure mode, or at
> least logging when a collision happens.
>
> Cheers,
> Sung
>
> On 2026/10/12 10:48:49 Andrei Tserakhau via dev wrote:
> > Hi JB,
> >
> > Thanks, good to keep the Glasgow conversation going. Glad we're aligned
> on
> > opt B.
> >
> > On your questions:
> >
> > 1/ Permissions / leakage: I'd reuse the existing tag visibility rules
> > rather than add a label-specific privilege. On `loadTable` / `loadView`,
> > labels would only include tags the caller is already allowed to see
> through
> > the Tag API. Table access alone would not expose anything extra.
> >
> > 2/ Performance: Agreed, `loadTable` is too hot to resolve inheritance on
> > every call. I'd cache the effective tags per table, invalidate on tag
> > changes, then apply the caller-specific visibility filter on top. That
> > should keep the added cost small.
> >
> > 3/ Default vs gated: I'd gate it initially with something like
> > `polaris.label.enabled` per catalog, default off. We can move toward
> > on-by-default later once the behavior and cost are proven.
> >
> > Best,
> > Andrei
> >
> > On Mon, Oct 12, 2026 at 9:43 AM Jean-Baptiste Onofré <jb...@nanthrax.net>
> > wrote:
> >
> > > Hi Andrei
> > >
> > > Thanks for starting this thread after our discussion during Lakehouse
> > > Day/CommunityOverCode in Glasgow.
> > >
> > > I'm +1 to option B (labels as a read-only projection over tags). Tags
> > > already have definitions, allowed values, inheritance and reverse
> lookup,
> > > and both models are keyed by Iceberg field-id. A separate labels entity
> > > would give us two source of truth to reconcile, with no benefit imho.
> > >
> > > The tag work isn't merged yet, so it's cheap (good timing :)) to
> reserve
> > > what the consumer role needs. Postponing this later would be much more
> > > painful. I would keep the actual federation impl out of the first tag
> PR.
> > >
> > > About collisions, "native wins" is reasonable. Polaris is the asserting
> > > catalog at the point of access, so I'm fine with that rule.
> > >
> > > I have a few questions:
> > > - We have to be careful that tag-definition visibility (permission)
> > > doesn't leak through labels. Do we plan to see labels on
> loadTable/loadView
> > > relying on the table read privileges? Or do we want specific
> privileges for
> > > label/tag?
> > > - Resolving tags with inheritence on every loadTable can be significant
> > > for performence. What are your thoughts about that? Opt caching?
> > > - Do we want to have label emitted by default, or do you want to guate
> by
> > > catalog configuration (polaris.label.enabled=on)?
> > >
> > > Thanks!
> > > Regards
> > > JB
> > >
> > > On Sun, Oct 11, 2026 at 11:26 AM Andrei Tserakhau via dev <
> > > dev@polaris.apache.org> wrote:
> > >
> > >> Hi all,
> > >>
> > >> Now that the IRC "labels" field has merged in Iceberg Spec ([0]) and
> the
> > >> Polaris Tag work is close ([1]), I'd like to open a thread on how
> Polaris
> > >> should support labels.
> > >>
> > >> There are two ways Polaris could do labels:
> > >>
> > >> A) Labels as a separate entity - their own definitions/store,
> parallel to
> > >> Tags.
> > >> B) Labels as a projection over Tags - read-only IRC view / projection
> of
> > >> the existing tag model.
> > >>
> > >> I propose B. Tags already are the structured model: definitions,
> > >> assignments, allowed values, inheritance, reverse lookup. IRC labels
> are
> > >> designed as the flat read surface of such models (object-level
> key/values
> > >> plus per-field labels by field-id). A separate labels entity would
> > >> duplicate the tag model and create two sources of truth to reconcile;
> a
> > >> projection keeps one model with two surfaces, a structured authoring
> API
> > >> and an interoperable flat read field. Column identity already lines
> up:
> > >> Tags use the Iceberg field-id, and IRC labels fields are keyed by
> > >> field-id.
> > >>
> > >> Given B, a Polaris catalog plays two roles:
> > >>
> > >> 1. Producer. Polaris resolves a target's effective tags (inheritance
> > >> applied, closest-wins) and projects them into IRC labels on
> > >> loadTable/loadView. The Tag API stays the authoring/management
> surface and
> > >> labels is the read projection for IRC compliant engines.
> > >>
> > >> 2. Consumer. When Polaris federates a foreign IRC catalog, it reads
> that
> > >> catalog's labels and stores them as tags owned by the source catalog:
> > >> read-only in Polaris and clearly marked as foreign. A Polaris user
> cannot
> > >> edit them (they change only when Polaris re-syncs from the source) and
> > >> they
> > >> stay separate from Polaris's own natively-authored tags. That is how a
> > >> foreign catalog's metadata becomes usable in Polaris without
> pretending it
> > >> is local.
> > >>
> > >> Mostly I'd like the community read on whether projection-over-tags
> feels
> > >> right, and whether the producer/consumer split is worth keeping in
> mind in
> > >> the Tag design so the contract leaves room for it. Would like to hear
> if
> > >> this framing is wrong, or where a separate entity would actually serve
> > >> better.
> > >>
> > >> Thanks,
> > >> Andrei
> > >>
> > >> [0] IRC Labels spec PR - https://github.com/apache/iceberg/pull/15750
> > >> [1] Tags discussion thread -
> > >> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
> > >>
> > >
> >
>
Re: [DISCUSS] IRC Labels in Polaris
Posted by Sung Yun <su...@apache.org>.
On permissions: I agree that reducing the number of privileges makes sense. I'd also like us to think about how this applies to federated labels.
Here are the label sources we've talked about so far:
- Tags (internal to Polaris)
- Federated labels
- Possibly others
If tag permissions decide which labels show up in loadTable/loadView, what happens to federated labels? Should they always be visible, or should Polaris have a permission that controls whether they're shown?
On collisions: I'm concerned that a simple "native wins" approach could make the engine behave differently without anyone noticing.
How much this matters depends on what the labels are used for. Take data governance: if the native label silently wins, the policy applied to a table could differ depending on whether it's accessed through the source catalog or the federated catalog. The engine would then pick up that difference with no signal that anything changed.
To prevent this, I'd suggest we consider a louder failure mode, or at least logging when a collision happens.
Cheers,
Sung
On 2026/10/12 10:48:49 Andrei Tserakhau via dev wrote:
> Hi JB,
>
> Thanks, good to keep the Glasgow conversation going. Glad we're aligned on
> opt B.
>
> On your questions:
>
> 1/ Permissions / leakage: I'd reuse the existing tag visibility rules
> rather than add a label-specific privilege. On `loadTable` / `loadView`,
> labels would only include tags the caller is already allowed to see through
> the Tag API. Table access alone would not expose anything extra.
>
> 2/ Performance: Agreed, `loadTable` is too hot to resolve inheritance on
> every call. I'd cache the effective tags per table, invalidate on tag
> changes, then apply the caller-specific visibility filter on top. That
> should keep the added cost small.
>
> 3/ Default vs gated: I'd gate it initially with something like
> `polaris.label.enabled` per catalog, default off. We can move toward
> on-by-default later once the behavior and cost are proven.
>
> Best,
> Andrei
>
> On Mon, Oct 12, 2026 at 9:43 AM Jean-Baptiste Onofré <jb...@nanthrax.net>
> wrote:
>
> > Hi Andrei
> >
> > Thanks for starting this thread after our discussion during Lakehouse
> > Day/CommunityOverCode in Glasgow.
> >
> > I'm +1 to option B (labels as a read-only projection over tags). Tags
> > already have definitions, allowed values, inheritance and reverse lookup,
> > and both models are keyed by Iceberg field-id. A separate labels entity
> > would give us two source of truth to reconcile, with no benefit imho.
> >
> > The tag work isn't merged yet, so it's cheap (good timing :)) to reserve
> > what the consumer role needs. Postponing this later would be much more
> > painful. I would keep the actual federation impl out of the first tag PR.
> >
> > About collisions, "native wins" is reasonable. Polaris is the asserting
> > catalog at the point of access, so I'm fine with that rule.
> >
> > I have a few questions:
> > - We have to be careful that tag-definition visibility (permission)
> > doesn't leak through labels. Do we plan to see labels on loadTable/loadView
> > relying on the table read privileges? Or do we want specific privileges for
> > label/tag?
> > - Resolving tags with inheritence on every loadTable can be significant
> > for performence. What are your thoughts about that? Opt caching?
> > - Do we want to have label emitted by default, or do you want to guate by
> > catalog configuration (polaris.label.enabled=on)?
> >
> > Thanks!
> > Regards
> > JB
> >
> > On Sun, Oct 11, 2026 at 11:26 AM Andrei Tserakhau via dev <
> > dev@polaris.apache.org> wrote:
> >
> >> Hi all,
> >>
> >> Now that the IRC "labels" field has merged in Iceberg Spec ([0]) and the
> >> Polaris Tag work is close ([1]), I'd like to open a thread on how Polaris
> >> should support labels.
> >>
> >> There are two ways Polaris could do labels:
> >>
> >> A) Labels as a separate entity - their own definitions/store, parallel to
> >> Tags.
> >> B) Labels as a projection over Tags - read-only IRC view / projection of
> >> the existing tag model.
> >>
> >> I propose B. Tags already are the structured model: definitions,
> >> assignments, allowed values, inheritance, reverse lookup. IRC labels are
> >> designed as the flat read surface of such models (object-level key/values
> >> plus per-field labels by field-id). A separate labels entity would
> >> duplicate the tag model and create two sources of truth to reconcile; a
> >> projection keeps one model with two surfaces, a structured authoring API
> >> and an interoperable flat read field. Column identity already lines up:
> >> Tags use the Iceberg field-id, and IRC labels fields are keyed by
> >> field-id.
> >>
> >> Given B, a Polaris catalog plays two roles:
> >>
> >> 1. Producer. Polaris resolves a target's effective tags (inheritance
> >> applied, closest-wins) and projects them into IRC labels on
> >> loadTable/loadView. The Tag API stays the authoring/management surface and
> >> labels is the read projection for IRC compliant engines.
> >>
> >> 2. Consumer. When Polaris federates a foreign IRC catalog, it reads that
> >> catalog's labels and stores them as tags owned by the source catalog:
> >> read-only in Polaris and clearly marked as foreign. A Polaris user cannot
> >> edit them (they change only when Polaris re-syncs from the source) and
> >> they
> >> stay separate from Polaris's own natively-authored tags. That is how a
> >> foreign catalog's metadata becomes usable in Polaris without pretending it
> >> is local.
> >>
> >> Mostly I'd like the community read on whether projection-over-tags feels
> >> right, and whether the producer/consumer split is worth keeping in mind in
> >> the Tag design so the contract leaves room for it. Would like to hear if
> >> this framing is wrong, or where a separate entity would actually serve
> >> better.
> >>
> >> Thanks,
> >> Andrei
> >>
> >> [0] IRC Labels spec PR - https://github.com/apache/iceberg/pull/15750
> >> [1] Tags discussion thread -
> >> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
> >>
> >
>
Re: [DISCUSS] IRC Labels in Polaris
Posted by Andrei Tserakhau via dev <de...@polaris.apache.org>.
Hi JB,
Thanks, good to keep the Glasgow conversation going. Glad we're aligned on
opt B.
On your questions:
1/ Permissions / leakage: I'd reuse the existing tag visibility rules
rather than add a label-specific privilege. On `loadTable` / `loadView`,
labels would only include tags the caller is already allowed to see through
the Tag API. Table access alone would not expose anything extra.
2/ Performance: Agreed, `loadTable` is too hot to resolve inheritance on
every call. I'd cache the effective tags per table, invalidate on tag
changes, then apply the caller-specific visibility filter on top. That
should keep the added cost small.
3/ Default vs gated: I'd gate it initially with something like
`polaris.label.enabled` per catalog, default off. We can move toward
on-by-default later once the behavior and cost are proven.
Best,
Andrei
On Mon, Oct 12, 2026 at 9:43 AM Jean-Baptiste Onofré <jb...@nanthrax.net>
wrote:
> Hi Andrei
>
> Thanks for starting this thread after our discussion during Lakehouse
> Day/CommunityOverCode in Glasgow.
>
> I'm +1 to option B (labels as a read-only projection over tags). Tags
> already have definitions, allowed values, inheritance and reverse lookup,
> and both models are keyed by Iceberg field-id. A separate labels entity
> would give us two source of truth to reconcile, with no benefit imho.
>
> The tag work isn't merged yet, so it's cheap (good timing :)) to reserve
> what the consumer role needs. Postponing this later would be much more
> painful. I would keep the actual federation impl out of the first tag PR.
>
> About collisions, "native wins" is reasonable. Polaris is the asserting
> catalog at the point of access, so I'm fine with that rule.
>
> I have a few questions:
> - We have to be careful that tag-definition visibility (permission)
> doesn't leak through labels. Do we plan to see labels on loadTable/loadView
> relying on the table read privileges? Or do we want specific privileges for
> label/tag?
> - Resolving tags with inheritence on every loadTable can be significant
> for performence. What are your thoughts about that? Opt caching?
> - Do we want to have label emitted by default, or do you want to guate by
> catalog configuration (polaris.label.enabled=on)?
>
> Thanks!
> Regards
> JB
>
> On Sun, Oct 11, 2026 at 11:26 AM Andrei Tserakhau via dev <
> dev@polaris.apache.org> wrote:
>
>> Hi all,
>>
>> Now that the IRC "labels" field has merged in Iceberg Spec ([0]) and the
>> Polaris Tag work is close ([1]), I'd like to open a thread on how Polaris
>> should support labels.
>>
>> There are two ways Polaris could do labels:
>>
>> A) Labels as a separate entity - their own definitions/store, parallel to
>> Tags.
>> B) Labels as a projection over Tags - read-only IRC view / projection of
>> the existing tag model.
>>
>> I propose B. Tags already are the structured model: definitions,
>> assignments, allowed values, inheritance, reverse lookup. IRC labels are
>> designed as the flat read surface of such models (object-level key/values
>> plus per-field labels by field-id). A separate labels entity would
>> duplicate the tag model and create two sources of truth to reconcile; a
>> projection keeps one model with two surfaces, a structured authoring API
>> and an interoperable flat read field. Column identity already lines up:
>> Tags use the Iceberg field-id, and IRC labels fields are keyed by
>> field-id.
>>
>> Given B, a Polaris catalog plays two roles:
>>
>> 1. Producer. Polaris resolves a target's effective tags (inheritance
>> applied, closest-wins) and projects them into IRC labels on
>> loadTable/loadView. The Tag API stays the authoring/management surface and
>> labels is the read projection for IRC compliant engines.
>>
>> 2. Consumer. When Polaris federates a foreign IRC catalog, it reads that
>> catalog's labels and stores them as tags owned by the source catalog:
>> read-only in Polaris and clearly marked as foreign. A Polaris user cannot
>> edit them (they change only when Polaris re-syncs from the source) and
>> they
>> stay separate from Polaris's own natively-authored tags. That is how a
>> foreign catalog's metadata becomes usable in Polaris without pretending it
>> is local.
>>
>> Mostly I'd like the community read on whether projection-over-tags feels
>> right, and whether the producer/consumer split is worth keeping in mind in
>> the Tag design so the contract leaves room for it. Would like to hear if
>> this framing is wrong, or where a separate entity would actually serve
>> better.
>>
>> Thanks,
>> Andrei
>>
>> [0] IRC Labels spec PR - https://github.com/apache/iceberg/pull/15750
>> [1] Tags discussion thread -
>> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
>>
>
Re: [DISCUSS] IRC Labels in Polaris
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Andrei
Thanks for starting this thread after our discussion during Lakehouse
Day/CommunityOverCode in Glasgow.
I'm +1 to option B (labels as a read-only projection over tags). Tags
already have definitions, allowed values, inheritance and reverse lookup,
and both models are keyed by Iceberg field-id. A separate labels entity
would give us two source of truth to reconcile, with no benefit imho.
The tag work isn't merged yet, so it's cheap (good timing :)) to reserve
what the consumer role needs. Postponing this later would be much more
painful. I would keep the actual federation impl out of the first tag PR.
About collisions, "native wins" is reasonable. Polaris is the asserting
catalog at the point of access, so I'm fine with that rule.
I have a few questions:
- We have to be careful that tag-definition visibility (permission) doesn't
leak through labels. Do we plan to see labels on loadTable/loadView relying
on the table read privileges? Or do we want specific privileges for
label/tag?
- Resolving tags with inheritence on every loadTable can be significant for
performence. What are your thoughts about that? Opt caching?
- Do we want to have label emitted by default, or do you want to guate by
catalog configuration (polaris.label.enabled=on)?
Thanks!
Regards
JB
On Sun, Oct 11, 2026 at 11:26 AM Andrei Tserakhau via dev <
dev@polaris.apache.org> wrote:
> Hi all,
>
> Now that the IRC "labels" field has merged in Iceberg Spec ([0]) and the
> Polaris Tag work is close ([1]), I'd like to open a thread on how Polaris
> should support labels.
>
> There are two ways Polaris could do labels:
>
> A) Labels as a separate entity - their own definitions/store, parallel to
> Tags.
> B) Labels as a projection over Tags - read-only IRC view / projection of
> the existing tag model.
>
> I propose B. Tags already are the structured model: definitions,
> assignments, allowed values, inheritance, reverse lookup. IRC labels are
> designed as the flat read surface of such models (object-level key/values
> plus per-field labels by field-id). A separate labels entity would
> duplicate the tag model and create two sources of truth to reconcile; a
> projection keeps one model with two surfaces, a structured authoring API
> and an interoperable flat read field. Column identity already lines up:
> Tags use the Iceberg field-id, and IRC labels fields are keyed by field-id.
>
> Given B, a Polaris catalog plays two roles:
>
> 1. Producer. Polaris resolves a target's effective tags (inheritance
> applied, closest-wins) and projects them into IRC labels on
> loadTable/loadView. The Tag API stays the authoring/management surface and
> labels is the read projection for IRC compliant engines.
>
> 2. Consumer. When Polaris federates a foreign IRC catalog, it reads that
> catalog's labels and stores them as tags owned by the source catalog:
> read-only in Polaris and clearly marked as foreign. A Polaris user cannot
> edit them (they change only when Polaris re-syncs from the source) and they
> stay separate from Polaris's own natively-authored tags. That is how a
> foreign catalog's metadata becomes usable in Polaris without pretending it
> is local.
>
> Mostly I'd like the community read on whether projection-over-tags feels
> right, and whether the producer/consumer split is worth keeping in mind in
> the Tag design so the contract leaves room for it. Would like to hear if
> this framing is wrong, or where a separate entity would actually serve
> better.
>
> Thanks,
> Andrei
>
> [0] IRC Labels spec PR - https://github.com/apache/iceberg/pull/15750
> [1] Tags discussion thread -
> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
>
Re: [DISCUSS] IRC Labels in Polaris
Posted by Andrei Tserakhau via dev <de...@polaris.apache.org>.
Thanks, good questions!
On (1), store vs. forward:
Forwarding the foreign labels straight through on loadTable is fine, and
for an engine that just reads the table it's probably the simpler default,
Polaris doesn't need to store anything to pass them along.
The reason to represent them as tags is about Polaris users, not the wire.
Because we're treating labels as a projection over Tags (no separate labels
entity), there's no other surface to show a federated table's
classifications through Polaris's own read / discovery / reverse-lookup
APIs. Representing them as foreign, read-only tags is the only coherent way
to make them visible there.
And "represent as tags" doesn't have to mean "persist" - it can be
ephemeral, resolved from the source on read and never stored. Caching them
is an optimization (avoids a live round-trip to the source on every read,
and an availability dependency on it), not a requirement. So: pass-through
for the engine read path, foreign read-only tags for Polaris-side
visibility, caching optional / follow up.
On (2), can owners tag a federated table, and collisions:
Yes, I'd allow it. Enriching a federated table with local classification is
one of the main reasons to federate it in the first place.
On collisions: in the tag representation there isn't really one, because
foreign tags carry source attribution and are read-only while native tags
are locally owned. An owner from the source and an owner adds locally
coexist - they're distinguishable by origin, and adding the native one
doesn't overwrite or edit the foreign one.
The collision only has to be resolved at the flat labels wire, where
there's one value per key. There I'd propose native (local) wins: at the
point Polaris serves the table it is the asserting catalog, so its own
classification is authoritative, with the foreign value preserved
underneath via attribution.
That's consistent with the spirit of IRC labels: a catalog presents what it
asserts at the point of access.
Best,
Andrei
On Sun, Oct 11, 2026 at 11:40 AM Sung Yun <su...@apache.org> wrote:
> Hi Andrei,
>
> Thanks for starting this discussion. I agree it would be good to think
> about how the relationship between tags and labels should be mapped if any.
>
> As a Producer, I generally agree with your proposal of sourcing the labels
> from tags, as the alternative would be to introduce a different first class
> entity that is stored within Polaris.
>
> Regarding your proposal for consuming labels for federated catalogs I have
> two questions:
> 1. Is there a reason why we’d need to store the federated labels as tags,
> instead of just directly forwarding the labels to the client?
> 2. Would data owners be allowed to attach tags/labels in Polaris for a
> federated table?
> If so, how do you think we should handle label naming collisions between
> native Polaris labels and federated labels?
>
> Sung
>
> On Sun, Oct 11, 2026 at 11:28 AM Andrei Tserakhau via dev <
> dev@polaris.apache.org> wrote:
>
> > Hi all,
> >
> > Now that the IRC "labels" field has merged in Iceberg Spec ([0]) and the
> > Polaris Tag work is close ([1]), I'd like to open a thread on how Polaris
> > should support labels.
> >
> > There are two ways Polaris could do labels:
> >
> > A) Labels as a separate entity - their own definitions/store, parallel to
> > Tags.
> > B) Labels as a projection over Tags - read-only IRC view / projection of
> > the existing tag model.
> >
> > I propose B. Tags already are the structured model: definitions,
> > assignments, allowed values, inheritance, reverse lookup. IRC labels are
> > designed as the flat read surface of such models (object-level key/values
> > plus per-field labels by field-id). A separate labels entity would
> > duplicate the tag model and create two sources of truth to reconcile; a
> > projection keeps one model with two surfaces, a structured authoring API
> > and an interoperable flat read field. Column identity already lines up:
> > Tags use the Iceberg field-id, and IRC labels fields are keyed by
> field-id.
> >
> > Given B, a Polaris catalog plays two roles:
> >
> > 1. Producer. Polaris resolves a target's effective tags (inheritance
> > applied, closest-wins) and projects them into IRC labels on
> > loadTable/loadView. The Tag API stays the authoring/management surface
> and
> > labels is the read projection for IRC compliant engines.
> >
> > 2. Consumer. When Polaris federates a foreign IRC catalog, it reads that
> > catalog's labels and stores them as tags owned by the source catalog:
> > read-only in Polaris and clearly marked as foreign. A Polaris user cannot
> > edit them (they change only when Polaris re-syncs from the source) and
> they
> > stay separate from Polaris's own natively-authored tags. That is how a
> > foreign catalog's metadata becomes usable in Polaris without pretending
> it
> > is local.
> >
> > Mostly I'd like the community read on whether projection-over-tags feels
> > right, and whether the producer/consumer split is worth keeping in mind
> in
> > the Tag design so the contract leaves room for it. Would like to hear if
> > this framing is wrong, or where a separate entity would actually serve
> > better.
> >
> > Thanks,
> > Andrei
> >
> > [0] IRC Labels spec PR - https://github.com/apache/iceberg/pull/15750
> > [1] Tags discussion thread -
> > https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
> >
>
Re: [DISCUSS] IRC Labels in Polaris
Posted by Sung Yun <su...@apache.org>.
Hi Andrei,
Thanks for starting this discussion. I agree it would be good to think
about how the relationship between tags and labels should be mapped if any.
As a Producer, I generally agree with your proposal of sourcing the labels
from tags, as the alternative would be to introduce a different first class
entity that is stored within Polaris.
Regarding your proposal for consuming labels for federated catalogs I have
two questions:
1. Is there a reason why we’d need to store the federated labels as tags,
instead of just directly forwarding the labels to the client?
2. Would data owners be allowed to attach tags/labels in Polaris for a
federated table?
If so, how do you think we should handle label naming collisions between
native Polaris labels and federated labels?
Sung
On Sun, Oct 11, 2026 at 11:28 AM Andrei Tserakhau via dev <
dev@polaris.apache.org> wrote:
> Hi all,
>
> Now that the IRC "labels" field has merged in Iceberg Spec ([0]) and the
> Polaris Tag work is close ([1]), I'd like to open a thread on how Polaris
> should support labels.
>
> There are two ways Polaris could do labels:
>
> A) Labels as a separate entity - their own definitions/store, parallel to
> Tags.
> B) Labels as a projection over Tags - read-only IRC view / projection of
> the existing tag model.
>
> I propose B. Tags already are the structured model: definitions,
> assignments, allowed values, inheritance, reverse lookup. IRC labels are
> designed as the flat read surface of such models (object-level key/values
> plus per-field labels by field-id). A separate labels entity would
> duplicate the tag model and create two sources of truth to reconcile; a
> projection keeps one model with two surfaces, a structured authoring API
> and an interoperable flat read field. Column identity already lines up:
> Tags use the Iceberg field-id, and IRC labels fields are keyed by field-id.
>
> Given B, a Polaris catalog plays two roles:
>
> 1. Producer. Polaris resolves a target's effective tags (inheritance
> applied, closest-wins) and projects them into IRC labels on
> loadTable/loadView. The Tag API stays the authoring/management surface and
> labels is the read projection for IRC compliant engines.
>
> 2. Consumer. When Polaris federates a foreign IRC catalog, it reads that
> catalog's labels and stores them as tags owned by the source catalog:
> read-only in Polaris and clearly marked as foreign. A Polaris user cannot
> edit them (they change only when Polaris re-syncs from the source) and they
> stay separate from Polaris's own natively-authored tags. That is how a
> foreign catalog's metadata becomes usable in Polaris without pretending it
> is local.
>
> Mostly I'd like the community read on whether projection-over-tags feels
> right, and whether the producer/consumer split is worth keeping in mind in
> the Tag design so the contract leaves room for it. Would like to hear if
> this framing is wrong, or where a separate entity would actually serve
> better.
>
> Thanks,
> Andrei
>
> [0] IRC Labels spec PR - https://github.com/apache/iceberg/pull/15750
> [1] Tags discussion thread -
> https://lists.apache.org/thread/28h8bvg3pwwmpob2p4gcrpfs1x5cgkmn
>