Skip to content

Commit

Permalink
Fixed ALTER mv SQL generator
Browse files Browse the repository at this point in the history
  • Loading branch information
aosingh committed Nov 17, 2023
1 parent 0cc53b5 commit 839e2c5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
-- apply a full refresh immediately if needed
{% if configuration_changes.requires_full_refresh %}

{{ get_replace_materialized_view_as_sql(relation, sql, existing_relation, backup_relation, intermediate_relation) }}
{{- log('Applying REPLACE to: ' ~ existing_relation ) -}}
{{ oracle__drop_relation(existing_relation) }}
{{ oracle__get_create_materialized_view_as_sql(target_relation, sql) }}


-- otherwise apply individual changes as needed
{% else %}
Expand Down

0 comments on commit 839e2c5

Please sign in to comment.