Skip to content

API: Add SupportsReferencedBy interface#15895

Open
singhpk234 wants to merge 2 commits intoapache:mainfrom
singhpk234:feature/supports-referenced-by-interface
Open

API: Add SupportsReferencedBy interface#15895
singhpk234 wants to merge 2 commits intoapache:mainfrom
singhpk234:feature/supports-referenced-by-interface

Conversation

@singhpk234
Copy link
Copy Markdown
Contributor

@singhpk234 singhpk234 commented Apr 6, 2026

About the change

SupportsReferencedBy - a new opt-in catalog capability interface with loadTable and loadView methods
that accept an ordered list of referencing view identifiers
Default overloads on SessionCatalog.loadTable and ViewSessionCatalog.loadView that accept the
referenced-by view chain, delegating to the existing methods for backward compatibility

When a table or view is loaded as part of resolving a view, the chain of referencing views can be passed
to the catalog. This enables catalog servers to make authorization, credential scoping, and auditing
decisions based on the full view reference chain.

This is the first in a series of PRs to implement the referenced-by feature end-to-end, broken out from
#13979:

  1. This PR - API interface definition
  2. Core/REST implementation (RESTSessionCatalog, encoding utilities, tests)
  3. Spark plumbing (view chain accumulation in Catalyst, SparkCatalog integration, E2E tests)

Related

@sfc-gh-prsingh sfc-gh-prsingh force-pushed the feature/supports-referenced-by-interface branch from e597a1f to b6d8da2 Compare April 6, 2026 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants