Skip to content

adapter,catalog: convert more builtin item tables into views#36074

Draft
teskje wants to merge 1 commit intoMaterializeInc:mainfrom
teskje:more-builtin-mvs
Draft

adapter,catalog: convert more builtin item tables into views#36074
teskje wants to merge 1 commit intoMaterializeInc:mainfrom
teskje:more-builtin-mvs

Conversation

@teskje
Copy link
Copy Markdown
Contributor

@teskje teskje commented Apr 14, 2026

This commit converts another set of builtin tables into views over the catalog:

  • mz_connections
  • mz_continual_tasks
  • mz_indexes
  • mz_secrets
  • mz_sinks
  • mz_sources

As part of this, it adds new constant builtin views exposing the respective builtin object kinds to SQL queries:

  • mz_builtin_connections
  • mz_builtin_continual_tasks
  • mz_builtin_indexes
  • mz_builtin_sources

Motivation

Part of SQL-118

@github-actions
Copy link
Copy Markdown
Contributor

Thanks for opening this PR! Here are a few tips to help make the review process smooth for everyone.

PR title guidelines

  • Use imperative mood: "Fix X" not "Fixed X" or "Fixes X"
  • Be specific: "Fix panic in catalog sync when controller restarts" not "Fix bug" or "Update catalog code"
  • Prefix with area if helpful: compute: , storage: , adapter: , sql:

Pre-merge checklist

  • The PR title is descriptive and will make sense in the git log.
  • This PR has adequate test coverage / QA involvement has been duly considered. (trigger-ci for additional test/nightly runs)
  • If this PR includes major user-facing behavior changes, I have pinged the relevant PM to schedule a changelog post.
  • This PR has an associated up-to-date design doc, is a design doc (template), or is sufficiently small to not require a design.
  • If this PR evolves an existing $T ⇔ Proto$T mapping (possibly in a backwards-incompatible way), then it is tagged with a T-proto label.
  • If this PR will require changes to cloud orchestration or tests, there is a companion cloud PR to account for those changes that is tagged with the release-blocker label (example).

@teskje teskje force-pushed the more-builtin-mvs branch 5 times, most recently from 382542f to 81d5310 Compare April 15, 2026 12:23
This commit converts another set of builtin tables into views over the catalog:

 * mz_connections
 * mz_continual_tasks
 * mz_indexes
 * mz_secrets
 * mz_sinks
 * mz_sources

As part of this, it adds new constant builtin views exposing the
respective builtin object kinds to SQL queries:

 * mz_builtin_connections
 * mz_builtin_continual_tasks
 * mz_builtin_indexes
 * mz_builtin_sources
@teskje teskje force-pushed the more-builtin-mvs branch from 81d5310 to cd04a0f Compare April 15, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant