Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for local_md5 #30

Merged
merged 2 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading