Skip to content

Commit

Permalink
DATA-1515 fix: do not break on SavedQuery resources
Browse files Browse the repository at this point in the history
  • Loading branch information
calleo committed Oct 21, 2024
1 parent 4445a5b commit 46d3f35
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions macros/apply_meta_as_tags.sql
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@
-- Otherwise it returns False
#}
{% macro model_contains_tag_meta(model_node) %}
{% if not model_node.meta %}
{# SavedQuery does not support the meta attribute! #}
{{ return(False) }}
{% endif %}

{% if model_node.meta.database_tags %}
{{ return(True) }}
{% endif %}
Expand Down

0 comments on commit 46d3f35

Please sign in to comment.