Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storage/adapter: Add source-id column to mz_catalog.mz_tables and add tables-from-sources to mz_internal source-reference tables #29374

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

rjobanp
Copy link
Contributor

@rjobanp rjobanp commented Sep 4, 2024

Motivation

Implements some of the work towards https://github.com/MaterializeInc/database-issues/issues/8511 with the goal of unblocking @bobbyiliev 's work on the terraform provider (MaterializeInc/terraform-provider-materialize#645)

The introspection updates are described in the design doc PR #27907 - see here for rendered form: https://github.com/rjobanp/materialize/blob/subsource-deprecation-blue-green/doc/developer/design/20240625_source_versioning__table_from_sources.md#system-catalog--introspection-updates

Tips for reviewer

Checklist

  • This PR has adequate test coverage / QA involvement has been duly considered. (trigger-ci for additional test/nightly runs)
  • 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).
  • If this PR includes major user-facing behavior changes, I have pinged the relevant PM to schedule a changelog post.

Comment on lines -479 to -480
let mut updates =
match entry.item() {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this diff is big since it the indentation wasn't correctly formatted and now it's outdented the whole match statement, but the only update I made was within the CatalogItem::Table(table) case of the match

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suppressing whitespace works perfectly here (https://github.com/MaterializeInc/materialize/pull/29374/files?w=1)—thanks for the callout!

@rjobanp rjobanp force-pushed the mz-tables-sources branch 2 times, most recently from 7c384e1 to bcfd432 Compare September 4, 2024 19:08
@rjobanp rjobanp marked this pull request as ready for review September 4, 2024 21:31
@rjobanp rjobanp requested review from a team as code owners September 4, 2024 21:31
@rjobanp rjobanp requested review from jkosh44 and benesch September 4, 2024 21:31
doc/user/content/sql/system-catalog/mz_catalog.md Outdated Show resolved Hide resolved
Comment on lines -479 to -480
let mut updates =
match entry.item() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suppressing whitespace works perfectly here (https://github.com/MaterializeInc/materialize/pull/29374/files?w=1)—thanks for the callout!

… tables-from-sources to mz_internal source-reference tables
@rjobanp rjobanp merged commit 5383528 into MaterializeInc:main Sep 5, 2024
85 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 5, 2024
@rjobanp rjobanp deleted the mz-tables-sources branch September 5, 2024 19:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants