Skip to content

Commit

Permalink
Merge pull request #30 from get-select/check_for_local_md5
Browse files Browse the repository at this point in the history
Check for local_md5
  • Loading branch information
NiallRees authored May 14, 2024
2 parents 859d066 + 98632ff commit 52f1167
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .changes/2.4.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## dbt-snowflake-query-tags 2.4.1 - May 14, 2024

### Fixes

- Check for local_md5 as only added in dbt 1.4.0 ([#30](https://github.com/get-select/dbt-snowflake-query-tags/pull/30))


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.4.1 - May 14, 2024

### Fixes

- Check for local_md5 as only added in dbt 1.4.0 ([#30](https://github.com/get-select/dbt-snowflake-query-tags/pull/30))



## dbt-snowflake-query-tags 2.4.0 - May 14, 2024

### Features
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.4.0'
version: '2.4.1'
config-version: 2
4 changes: 2 additions & 2 deletions macros/query_comment.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{%- set comment_dict = extra -%}
{%- do comment_dict.update(
app='dbt',
dbt_snowflake_query_tags_version='2.4.0',
dbt_snowflake_query_tags_version='2.4.1',
dbt_version=dbt_version,
project_name=project_name,
target_name=target.name,
Expand Down Expand Up @@ -55,7 +55,7 @@
) -%}
{%- endif -%}

{%- if node.raw_code is not none -%}
{%- if node.raw_code is not none and local_md5 -%}
{%- do comment_dict.update({
"raw_code_hash": local_md5(node.raw_code)
}) -%}
Expand Down
2 changes: 1 addition & 1 deletion macros/query_tags.sql
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

{%- do query_tag.update(
app='dbt',
dbt_snowflake_query_tags_version='2.4.0',
dbt_snowflake_query_tags_version='2.4.1',
) -%}

{% if thread_id %}
Expand Down

0 comments on commit 52f1167

Please sign in to comment.