Skip to content

Commit 00ef47d

Browse files
authored
Merge pull request #11 from get-select/support_dbt_1.5.0
Support dbt 1.5.0
2 parents 591ea48 + 107d3fd commit 00ef47d

File tree

6 files changed

+23
-4
lines changed

6 files changed

+23
-4
lines changed

.changes/2.0.2.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.0.2 - May 12, 2023
2+
3+
### Features
4+
5+
- Support dbt 1.5.0 ([#11](https://github.com/get-select/dbt-snowflake-query-tags/pull/11))
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.0.2 - May 12, 2023
9+
10+
### Features
11+
12+
- Support dbt 1.5.0 ([#11](https://github.com/get-select/dbt-snowflake-query-tags/pull/11))
13+
14+
15+
816
## dbt-snowflake-query-tags 2.0.1 - February 24, 2023
917

1018
### Features

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ An example query comment contains:
66

77
```json
88
{
9-
"dbt_snowflake_query_tags_version": "2.0.1",
9+
"dbt_snowflake_query_tags_version": "2.0.2",
1010
"app": "dbt",
1111
"dbt_version": "1.4.0",
1212
"project_name": "my_project",

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.0.1'
2+
version: '2.0.2'
33
config-version: 2

macros/query_comment.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@
2828
{%- if node.refs is defined -%}
2929
{% set refs = [] %}
3030
{% for ref in node.refs %}
31-
{%- do refs.append(ref[0]) -%}
31+
{%- if dbt_version >= '1.5.0' -%}
32+
{%- do refs.append(ref.name) -%}
33+
{%- else -%}
34+
{%- do refs.append(ref[0]) -%}
35+
{%- endif -%}
3236
{% endfor %}
3337
{%- do comment_dict.update(
3438
node_refs=refs | unique | list

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ passenv =
1616

1717
[testenv:snowflake]
1818
changedir = integration_test_project
19-
deps = dbt-snowflake~=1.4.0
19+
deps = dbt-snowflake~=1.5.0
2020
commands =
2121
dbt deps
2222
dbt build --full-refresh

0 commit comments

Comments
 (0)