Skip to content

Commit

Permalink
Merge pull request #8 from Divergent-Insights/feature/boilerplate
Browse files Browse the repository at this point in the history
Correcting minor logic error with new dry_run functionality
  • Loading branch information
wilson-urdaneta authored Apr 27, 2022
2 parents 3fc1764 + be3f699 commit 4a45d53
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions macros/schema/create_schema.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% macro create_schema(database=target.database, dry_run=False) %}
{% macro create_schema(dry_run=false) %}

{% do log("create_schema started", info=True) %}

Expand All @@ -8,7 +8,7 @@
create schema if not exists {{ config["database"] }}.{{ config["schema"] }};
{% endset %}

{% if dry_run %}
{% if not dry_run %}
{% do run_query(sql) %}
{% endif %}

Expand Down
4 changes: 2 additions & 2 deletions macros/stage/create_internal_stage.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% macro create_internal_stage(dry_run=False) %}
{% macro create_internal_stage(dry_run=false) %}

{% do log("create_internal_stage started", info=True) %}
{% set config = _get_config() %}
Expand All @@ -8,7 +8,7 @@
file_format = ( type = json );
{% endset %}

{% if dry_run %}
{% if not dry_run %}
{% do run_query(sql) %}
{% endif %}

Expand Down
4 changes: 2 additions & 2 deletions macros/table/create_src_table.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% macro create_src_table(replace=False, dry_run=False) %}
{% macro create_src_table(replace=false, dry_run=false) %}

{% do log("create_src_table started", info=True) %}
{% set config = _get_config() %}
Expand All @@ -18,7 +18,7 @@
);
{% endset %}

{% if dry_run %}
{% if not dry_run %}
{% do run_query(sql) %}
{% endif %}

Expand Down

0 comments on commit 4a45d53

Please sign in to comment.