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

surfaces/adapter: in-place schema changes (ALTER MATERIALIZED VIEW) #27000

Open
morsapaes opened this issue May 9, 2024 · 1 comment
Open
Labels
C-feature Category: new feature or request

Comments

@morsapaes
Copy link
Contributor

morsapaes commented May 9, 2024

Overview

Allow changing the definition of a materialized view in-place using ALTER MATERIALIZED VIEW.

Details

Pairing this with #15897 allows users to handle (compatible) schema changes end-to-end without disrupting downstream dependencies.

See also

cc @benesch

Decision log

@morsapaes morsapaes added the C-feature Category: new feature or request label May 9, 2024
@morsapaes
Copy link
Contributor Author

Recording a Slack discussion where we concluded that CREATE OR REPLACE MATERIALIZED VIEW might be the more appropriate command here. We already support the OR REPLACE syntax for materialized views:

If a materialized view exists with the same name, replace it with the view defined in this statement. You cannot replace views that other views or sinks depend on, nor can you replace a non-view object with a view.

, so we could extend the semantics to allow replacing the definition of the view also when it has downstream dependencies.

cc @benesch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: new feature or request
Projects
None yet
Development

No branches or pull requests

1 participant