Skip to content

Commit

Permalink
Remove create_snowplow_manifest_schema step (Close #30)
Browse files Browse the repository at this point in the history
  • Loading branch information
bill-warner committed Oct 11, 2021
1 parent da49aa4 commit db462a1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions macros/snowplow_incremental_hooks.sql
Expand Up @@ -11,16 +11,6 @@
{% endmacro %}


{# Creates snowplow manifest schema. This should be automatically handled by dbt but adding for peace of mind #}
{% macro create_snowplow_manifest_schema() %}

{%- set manifest_schema=snowplow_utils.get_snowplow_manifest_schema() -%}

{% do adapter.create_schema(api.Relation.create(database=target.database, schema=manifest_schema)) %}

{% endmacro %}


{# Returns the incremental manifest table reference. This table contains 1 row/model with the latest tstamp consumed #}
{% macro get_incremental_manifest_table_relation(package_name) %}

Expand Down Expand Up @@ -403,8 +393,6 @@
{# pre-hook for incremental runs #}
{% macro snowplow_incremental_pre_hook(package_name) %}

{{ snowplow_utils.create_snowplow_manifest_schema() }}

{{ snowplow_utils.create_incremental_manifest_table(package_name) }}

{%- set models_in_run = snowplow_utils.get_enabled_snowplow_models(package_name) -%}
Expand Down

0 comments on commit db462a1

Please sign in to comment.