Skip to content

Commit

Permalink
Add comments to describe change.
Browse files Browse the repository at this point in the history
  • Loading branch information
lbk-fishtown authored Sep 12, 2022
1 parent d0a2f7e commit 2152e13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion macros/create_constraints.sql
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,11 @@
These models must be physical tables and cannot be sources -#}
{%- set table_models = [] -%}
{%- for node in graph.nodes.values() | selectattr("unique_id", "in", test_model.depends_on.nodes)
{#- Update to include snapshot resource type -#}
if node.resource_type in ( ( "model, snapshot") )
if node.config.materialized in( ("table", "incremental", "snapshot") ) -%}

{#- Append to our list of models for this test -#}
{#- Append to our list of models &or snapshots for this test -#}
{%- do table_models.append(node) -%}

{% endfor %}
Expand Down

0 comments on commit 2152e13

Please sign in to comment.