Skip to content

Commit 4b30044

Browse files
authored
Merge pull request #23 from get-select/remove_warning
Remove warning on session level query tag
2 parents fa868f4 + 05fac2c commit 4b30044

File tree

6 files changed

+23
-4
lines changed

6 files changed

+23
-4
lines changed

.changes/2.3.3.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## dbt-snowflake-query-tags 2.3.3 - January 29, 2024
2+
3+
### Features
4+
5+
- Remove warning on session level query tag ([#22](https://github.com/get-select/dbt-snowflake-query-tags/pull/22))
6+
7+

CHANGELOG.md

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

8+
## dbt-snowflake-query-tags 2.3.3 - January 29, 2024
9+
10+
### Features
11+
12+
- Remove warning on session level query tag ([#22](https://github.com/get-select/dbt-snowflake-query-tags/pull/22))
13+
14+
15+
816
## dbt-snowflake-query-tags 2.3.2 - January 18, 2024
917

1018
### Features

dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
name: 'dbt_snowflake_query_tags'
2-
version: '2.3.2'
2+
version: '2.3.3'
33
config-version: 2
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
select 1
2+
where false
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
{{ config(meta = {
2+
'team': '1'
3+
}) }}
4+
15
select 1
26
where false

macros/query_tags.sql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
{% if original_query_tag %}
1111
{% if fromjson(original_query_tag) is mapping %}
1212
{% set original_query_tag_parsed = fromjson(original_query_tag) %}
13-
{% else %}
14-
{% 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) %}
1513
{% endif %}
1614
{% endif %}
1715

@@ -37,7 +35,7 @@
3735

3836
{%- do query_tag.update(
3937
app='dbt',
40-
dbt_snowflake_query_tags_version='2.3.2',
38+
dbt_snowflake_query_tags_version='2.3.3',
4139
) -%}
4240

4341
{% if thread_id %}

0 commit comments

Comments
 (0)