Repository navigation
Conversation
antiguru
added this pull request to stack #39604
October 6, 2026 20:24
A replacement without a column list for a materialized view with a declared schema gets the target's column definitions during purification. The replacement's `create_sql` then states its schema, so re-planning it does not depend on the target, dependencies on types used by the definitions are recorded, and applying the replacement keeps the target's schema declared. Inherited columns behave like written-out ones, including assignment casts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
antiguru
force-pushed
the
claude/mv-declared-schema-inherit
branch
from
October 7, 2026 07:04
54314ef to
0346bcb
Compare
antiguru
removed this pull request from stack #39604
October 7, 2026 07:04
antiguru
changed the base branch from
claude/mv-declared-schema-impl
to
mv-schema/declared-keys
October 7, 2026 07:04
antiguru
added this pull request to stack #39622
October 7, 2026 07:04
This branch has not been deployed
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.
A replacement without a column list now gets its target's column definitions, so
CREATE REPLACEMENT MATERIALIZED VIEW r FOR mv AS SELECT ...no longer has to repeat them.Description
CREATEandEXPLAIN CREATE. The replacement'screate_sqlstates its schema, so re-planning it never depends on the target, and types used by the definitions are recorded as dependencies.NOT NULLassertions, key proof, and the feature flag.A replacement with a bare-name list for a declared target is still rejected.
The sqllogictest and platform check changes are unverified locally.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NrWZDcjDrqsHdkVGSrhuUj