Skip to main content
You can modify 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
Example without TO table The application is very limited because you can only change the 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.
The schedule (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.
Limitations:
  • ALTER TABLE ... MODIFY SETTING is not supported on materialized views; refresh settings can only be changed via MODIFY REFRESH.
  • Adding or removing APPEND is not supported.
  • The all_replicas refresh setting cannot be changed after the view is created.
The full list of refresh settings is documented in Refresh Settings. Refresh status, including the currently applied settings, is visible in system.view_refreshes.
Last modified on July 2, 2026