Skip to content

Commit

Permalink
Update materialized_view.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
prdpsvs authored May 24, 2024
1 parent 1fcc08b commit 223a8e6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
they return none

-- drop the temp relations if they exist already in the database
{{ synapse__drop_relation(preexisting_backup_relation) }}
{{ synapse__drop_relation(preexisting_intermediate_relation) }}
{% do adapter.drop_relation(preexisting_backup_relation) %}
{% do adapter.drop_relation(preexisting_intermediate_relation) %}

{{ run_hooks(pre_hooks, inside_transaction=False) }}

Expand All @@ -43,8 +43,8 @@
{% macro materialized_view_teardown(backup_relation, intermediate_relation, post_hooks) %}

-- drop the temp relations if they exist to leave the database clean for the next run
{{ synapse__drop_relation_script(backup_relation) }}
{{ synapse__drop_relation_script(intermediate_relation) }}
{% do adapter.drop_relation(preexisting_backup_relation) %}
{% do adapter.drop_relation(preexisting_intermediate_relation) %}

{{ run_hooks(post_hooks, inside_transaction=False) }}

Expand Down

0 comments on commit 223a8e6

Please sign in to comment.