Skip to content

Commit

Permalink
Merge pull request #11 from get-select/support_dbt_1.5.0
Browse files Browse the repository at this point in the history
Support dbt 1.5.0
  • Loading branch information
NiallRees authored May 11, 2023
2 parents 591ea48 + 107d3fd commit 00ef47d
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .changes/2.0.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## dbt-snowflake-query-tags 2.0.2 - May 12, 2023

### Features

- Support dbt 1.5.0 ([#11](https://github.com/get-select/dbt-snowflake-query-tags/pull/11))


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.0.2 - May 12, 2023

### Features

- Support dbt 1.5.0 ([#11](https://github.com/get-select/dbt-snowflake-query-tags/pull/11))



## dbt-snowflake-query-tags 2.0.1 - February 24, 2023

### Features
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ An example query comment contains:

```json
{
"dbt_snowflake_query_tags_version": "2.0.1",
"dbt_snowflake_query_tags_version": "2.0.2",
"app": "dbt",
"dbt_version": "1.4.0",
"project_name": "my_project",
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.0.1'
version: '2.0.2'
config-version: 2
6 changes: 5 additions & 1 deletion macros/query_comment.sql
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
{%- if node.refs is defined -%}
{% set refs = [] %}
{% for ref in node.refs %}
{%- do refs.append(ref[0]) -%}
{%- if dbt_version >= '1.5.0' -%}
{%- do refs.append(ref.name) -%}
{%- else -%}
{%- do refs.append(ref[0]) -%}
{%- endif -%}
{% endfor %}
{%- do comment_dict.update(
node_refs=refs | unique | list
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ passenv =

[testenv:snowflake]
changedir = integration_test_project
deps = dbt-snowflake~=1.4.0
deps = dbt-snowflake~=1.5.0
commands =
dbt deps
dbt build --full-refresh
Expand Down

0 comments on commit 00ef47d

Please sign in to comment.