Repository navigation
sql-703: Convert mz_replacements to a builtin materialized view - #39160
Merged
SangJunBak merged 4 commits intoOct 6, 2026
Merged
Conversation
SangJunBak
added this pull request to stack #38849
September 25, 2026 17:07
SangJunBak
force-pushed
the
jun/sql-499-convert-item-metadata-tables-to-catalog-views
branch
from
September 25, 2026 17:49
a4f29ae to
ccd8314
Compare
SangJunBak
force-pushed
the
jun/sql-499-convert-item-metadata-tables-to-catalog-views
branch
5 times, most recently
from
September 30, 2026 20:25
4215857 to
a2d6bf2
Compare
SangJunBak
force-pushed
the
jun/sql-499-convert-item-metadata-tables-to-catalog-views
branch
from
September 30, 2026 21:10
a2d6bf2 to
444230d
Compare
SangJunBak
marked this pull request as ready for review
September 30, 2026 21:51
ggevay
approved these changes
Oct 5, 2026
ggevay
left a comment
Contributor
There was a problem hiding this comment.
LGTM, just one minor thing
| // materialized view over mz_catalog_raw changes its catalog | ||
| // fingerprint. | ||
| MigrationStep::replacement( | ||
| "26.45.0-dev.0", |
Contributor
There was a problem hiding this comment.
Needs to be updated. (Sorry for the late review!)
Contributor
Author
There was a problem hiding this comment.
Np! Thanks for the review!!
SangJunBak
force-pushed
the
jun/sql-499-convert-item-metadata-tables-to-catalog-views
branch
from
October 5, 2026 14:46
444230d to
acc940f
Compare
parse_catalog_create_sql reports replacement_target, the target of a REPLACEMENT FOR materialized view. Nothing reads it yet.
- Add in the schema migration - Remove code that packs the update into our builtin tables - Use updated `parse_catalog_create_sql` to get the replacement IDs and derive mz_replacements using SQL
Add sqllogictests to ensure mz_replacements is consistent during an ALTER ... REPLACE operation
SangJunBak
force-pushed
the
jun/sql-499-convert-item-metadata-tables-to-catalog-views
branch
from
October 5, 2026 16:13
acc940f to
385828f
Compare
SangJunBak
deleted the
jun/sql-499-convert-item-metadata-tables-to-catalog-views
branch
October 6, 2026 03:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Closes SQL-703
Verification