Skip to content

Commit

Permalink
Changed snapshot logic to apply with dbt core. Possibly fixing an uni…
Browse files Browse the repository at this point in the history
…dentified bug :-)
  • Loading branch information
mikaelene committed Jan 11, 2021
1 parent 53134ce commit 8787167
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
{% for col in check_cols %}
{{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}
or
({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null)
(
(({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))
or
((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))
)
{%- if not loop.last %} or {% endif %}

{% endfor %}
Expand Down

0 comments on commit 8787167

Please sign in to comment.