Skip to content

Commit

Permalink
Create temporary views with 'or replace'
Browse files Browse the repository at this point in the history
  • Loading branch information
annaazizyan committed Oct 6, 2023
1 parent 992de28 commit a4dfa87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbt/include/spark/macros/adapters.sql
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@

{#-- We can't use temporary tables with `create ... as ()` syntax --#}
{% macro spark__create_temporary_view(relation, compiled_code) -%}
create temporary view {{ relation }} as
create or replace temporary view {{ relation }} as
{{ compiled_code }}
{%- endmacro -%}

Expand Down

0 comments on commit a4dfa87

Please sign in to comment.