Skip to content

Commit

Permalink
Temp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
emielver committed Jul 11, 2023
1 parent 8a1d2df commit 0f763f6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion macros/incremental_hooks/get_enabled_snowplow_models.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
{% set enabled_models = [] %}
{% set untagged_snowplow_models = [] %}
{% set snowplow_model_tag = package_name+'_incremental' %}
{% set snowplow_events_this_run_path = 'model.'+package_name+'.'+base_events_table_name %}
{% set snowplow_events_this_run_path = 'model.'+project_name+'.'+package_name+'_base_events_this_run' %}

{% if execute %}

{% set nodes = graph.nodes.values() | selectattr("resource_type", "equalto", "model") %}
Expand Down Expand Up @@ -53,6 +54,10 @@

{% endif %}

{% if enabled_models|length == 0 %}
{%- do exceptions.raise_compiler_error("No enabled models identified.") -%}
{% endif %}

{% endif %}

{{ return(enabled_models) }}
Expand Down

0 comments on commit 0f763f6

Please sign in to comment.