After changed materialized view(or called MV in rest of content), we will drop exist MV then create as follow code:
{% macro starrocks__get_replace_materialized_view_as_sql(relation, sql, existing_relation, backup_relation, intermediate_relation) %}
{{ starrocks__get_drop_relation_sql(existing_relation) }}
{{ get_create_materialized_view_as_sql(relation, sql) }}
{% endmacro %}
And I think there are better way to alter asynchronous MV because starrocks support atomic swap as this doc.
I will fork as internal project to use swap but also want to konw more ideas of community.
After changed materialized view(or called MV in rest of content), we will drop exist MV then create as follow code:
And I think there are better way to alter asynchronous MV because starrocks support atomic swap as this doc.
I will fork as internal project to use swap but also want to konw more ideas of community.