SELECT query that was specified when a materialized view was created with the ALTER TABLE ... MODIFY QUERY statement without interrupting ingestion process.
This command is created to change materialized view created with TO [db.]name clause. It does not change the structure of the underlying storage table and it does not change the columns’ definition of the materialized view, because of this the application of this command is very limited for materialized views are created without TO [db.]name clause.
Example with TO table
SELECT section without adding new columns.
ALTER TABLE … MODIFY REFRESH Statement
ALTER TABLE ... MODIFY REFRESH changes refresh parameters of a Refreshable Materialized View, including the schedule, dependencies, randomization, and refresh settings.
EVERY or AFTER) is mandatory: the statement replaces all refresh parameters at once. Any clause not specified — RANDOMIZE FOR, DEPENDS ON, or SETTINGS — is removed or reset to defaults. To change only refresh settings, repeat the current schedule.
ALTER TABLE ... MODIFY SETTINGis not supported on materialized views; refresh settings can only be changed viaMODIFY REFRESH.- Adding or removing
APPENDis not supported. - The
all_replicasrefresh setting cannot be changed after the view is created.
system.view_refreshes.