Skip to content

Commit 31c2ae7

Browse files
authored
Merge pull request #16 from get-select/add_thread_id
Add thread
2 parents 0d5c732 + 478aa41 commit 31c2ae7

File tree

5 files changed

+25
-3
lines changed

5 files changed

+25
-3
lines changed

.changes/2.3.0.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.0 - June 29, 2023
2+
3+
### Features
4+
5+
- Add thread_id to query tag ([#16](https://github.com/get-select/dbt-snowflake-query-tags/pull/16))
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.0 - June 29, 2023
9+
10+
### Features
11+
12+
- Add thread_id to query tag ([#16](https://github.com/get-select/dbt-snowflake-query-tags/pull/16))
13+
14+
15+
816
## dbt-snowflake-query-tags 2.2.0 - June 23, 2023
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.2.0'
2+
version: '2.3.0'
33
config-version: 2

macros/query_comment.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{%- set comment_dict = {} -%}
33
{%- do comment_dict.update(
44
app='dbt',
5-
dbt_snowflake_query_tags_version='2.0.1',
5+
dbt_snowflake_query_tags_version='2.3.0',
66
dbt_version=dbt_version,
77
project_name=project_name,
88
target_name=target.name,

macros/query_tags.sql

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,16 @@
88

99
{%- do tag_dict.update(
1010
app='dbt',
11-
dbt_snowflake_query_tags_version='2.0.1',
11+
dbt_snowflake_query_tags_version='2.3.0',
1212
) -%}
1313

14+
{% if thread_id %}
15+
{%- do tag_dict.update(
16+
thread_id=thread_id
17+
) -%}
18+
{% endif %}
19+
20+
1421
{# We have to bring is_incremental through here because its not available in the comment context #}
1522
{% if model.resource_type == 'model' %}
1623
{%- do tag_dict.update(

0 commit comments

Comments
 (0)