Skip to content

Commit 9c340e6

Browse files
fixed invalid string comparison on version numbers by making them ints. (#36)
* fixed invalid string comparison on version numbers by making them ints. * fixed it so 2.0 will not fail the test * double equals * added change log and version bump * used standard jinja split vs dbt_split
1 parent c9f42ab commit 9c340e6

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

.changes/2.5.1.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## dbt-snowflake-query-tags 2.5.1 - June 18, 2025
2+
3+
### Fixes
4+
5+
- Fixed incompatability with dbt version 1.10 ([#36](https://github.com/get-select/dbt-snowflake-query-tags/pull/36))
6+
7+
### Contributors
8+
- [@jeff-skoldberg-gmds](https://github.com/jeff-skoldberg-gmds) (Fixes)
9+

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ 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.5.1 - June 18, 2025
9+
10+
### Fixes
11+
12+
- Fixed incompatability with dbt version 1.10 ([#36](https://github.com/get-select/dbt-snowflake-query-tags/pull/36))
13+
14+
### Contributors
15+
- [@jeff-skoldberg-gmds](https://github.com/jeff-skoldberg-gmds) (Fixes)
16+
17+
818
## dbt-snowflake-query-tags 2.5.0 - May 15, 2024
919

1020
### 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.5.0'
2+
version: '2.5.1'
33
config-version: 2

macros/query_comment.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
{%- if node.refs is defined -%}
3939
{% set refs = [] %}
4040
{% for ref in node.refs %}
41-
{%- if dbt_version >= '1.5.0' -%}
41+
{%- if (dbt_version.split('.')[0] | int > 1)
42+
or (dbt_version.split('.')[0] | int == 1 and dbt_version.split('.')[1] | int >= 5) -%}
4243
{%- do refs.append(ref.name) -%}
4344
{%- else -%}
4445
{%- do refs.append(ref[0]) -%}

0 commit comments

Comments
 (0)