Skip to content

Commit

Permalink
Merge pull request #23 from get-select/remove_warning
Browse files Browse the repository at this point in the history
Remove warning on session level query tag
  • Loading branch information
NiallRees authored Jan 29, 2024
2 parents fa868f4 + 05fac2c commit 4b30044
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .changes/2.3.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## dbt-snowflake-query-tags 2.3.3 - January 29, 2024

### Features

- Remove warning on session level query tag ([#22](https://github.com/get-select/dbt-snowflake-query-tags/pull/22))


8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie).

## dbt-snowflake-query-tags 2.3.3 - January 29, 2024

### Features

- Remove warning on session level query tag ([#22](https://github.com/get-select/dbt-snowflake-query-tags/pull/22))



## dbt-snowflake-query-tags 2.3.2 - January 18, 2024

### Features
Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name: 'dbt_snowflake_query_tags'
version: '2.3.2'
version: '2.3.3'
config-version: 2
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
select 1
where false
4 changes: 4 additions & 0 deletions integration_test_project/tests/test.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
{{ config(meta = {
'team': '1'
}) }}

select 1
where false
4 changes: 1 addition & 3 deletions macros/query_tags.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
{% if original_query_tag %}
{% if fromjson(original_query_tag) is mapping %}
{% set original_query_tag_parsed = fromjson(original_query_tag) %}
{% else %}
{% do log("dbt-snowflake-query-tags warning: the session level query tag value of '{}' is not a mapping type, so is being ignored. If you'd like to add additional query tag information, use a mapping type instead, or remove it to avoid this message.".format(original_query_tag), True) %}
{% endif %}
{% endif %}

Expand All @@ -37,7 +35,7 @@

{%- do query_tag.update(
app='dbt',
dbt_snowflake_query_tags_version='2.3.2',
dbt_snowflake_query_tags_version='2.3.3',
) -%}

{% if thread_id %}
Expand Down

0 comments on commit 4b30044

Please sign in to comment.