Skip to content

Commit

Permalink
Remove unneeded code in default snapshot materialization (#4993)
Browse files Browse the repository at this point in the history
* Rm unneeded create_schema in snapshot mtlzn

* Add changelog entry
  • Loading branch information
jtcohen6 authored Apr 4, 2022
1 parent 204d535 commit 3f37a43
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .changes/unreleased/Under the Hood-20220404-144708.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
kind: Under the Hood
body: Remove unneeded create_schema in snapshot materialization
time: 2022-04-04T14:47:08.960642+02:00
custom:
Author: jtcohen6
Issue: "4742"
PR: "4993"
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
{%- set strategy_name = config.get('strategy') -%}
{%- set unique_key = config.get('unique_key') %}

{% if not adapter.check_schema_exists(model.database, model.schema) %}
{% do create_schema(model.database, model.schema) %}
{% endif %}

{% set target_relation_exists, target_relation = get_or_create_relation(
database=model.database,
schema=model.schema,
Expand Down

0 comments on commit 3f37a43

Please sign in to comment.