Skip to content

Commit

Permalink
Create temporary views with 'or replace' (#906)
Browse files Browse the repository at this point in the history
* Create temporary views with 'or replace'

* Add changie

---------

Co-authored-by: annaazizyan <[email protected]>
  • Loading branch information
colin-rogers-dbt and annaazizyan authored Oct 11, 2023
1 parent 04d01af commit 7bf1934
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/unreleased/Features-20231011-094718.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Features
body: Create temporary views with 'or replace'
time: 2023-10-11T09:47:18.485764-07:00
custom:
Author: annazizian
Issue: "350"
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 7bf1934

Please sign in to comment.