From 102654ef92f9cc1ec9ef5f30a031b6f8374b9bb6 Mon Sep 17 00:00:00 2001 From: Niall Woodward Date: Fri, 15 Mar 2024 13:07:07 +0000 Subject: [PATCH 1/3] Support different order json comment --- models/query_history_enriched.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/query_history_enriched.sql b/models/query_history_enriched.sql index c06b2d7..cba9a13 100644 --- a/models/query_history_enriched.sql +++ b/models/query_history_enriched.sql @@ -12,7 +12,7 @@ query_history as ( -- this removes comments enclosed by /* */ and single line comments starting with -- and either ending with a new line or end of string regexp_replace(query_text, $$(\/\*(.|\n|\r)*?\*\/)|(--.*$)|(--.*(\n|\r))|;$$, '') as query_text_no_comments, - try_parse_json(regexp_substr(query_text, '/\\*\\s({"app":\\s"dbt".*})\\s\\*/', 1, 1, 'ie')) as _dbt_json_comment_meta, + try_parse_json(regexp_substr(query_text, $$\/\*\s*({(.|\n|\r)*"app":\s"dbt"(.|\n|\r)*})\s*\*\/$$, 1, 1, 'ie')) as _dbt_json_comment_meta, case when try_parse_json(query_tag)['dbt_snowflake_query_tags_version'] is not null then try_parse_json(query_tag) end as _dbt_json_query_tag_meta, From da4585c761a46c2e8b7a711f569de557d1370cd2 Mon Sep 17 00:00:00 2001 From: Niall Woodward Date: Fri, 15 Mar 2024 13:08:37 +0000 Subject: [PATCH 2/3] Changelog --- .changes/5.0.4.md | 7 +++++++ dbt_project.yml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changes/5.0.4.md diff --git a/.changes/5.0.4.md b/.changes/5.0.4.md new file mode 100644 index 0000000..aa36f53 --- /dev/null +++ b/.changes/5.0.4.md @@ -0,0 +1,7 @@ +## dbt-snowflake-monitoring 5.0.4 - March 15, 2024 + +### Fixes + +- Support different order json comment ([#148](https://github.com/get-select/dbt-snowflake-monitoring/pull/148)) + + diff --git a/dbt_project.yml b/dbt_project.yml index b16a82c..26f4e9a 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,5 +1,5 @@ name: 'dbt_snowflake_monitoring' -version: '5.0.3' +version: '5.0.4' config-version: 2 profile: dbt_snowflake_monitoring From e18ed1dd005d2592a6c3283e3f6a2963e156b6f3 Mon Sep 17 00:00:00 2001 From: Niall Woodward Date: Fri, 15 Mar 2024 13:11:26 +0000 Subject: [PATCH 3/3] Changelog --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 92521da..8522d32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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-monitoring 5.0.4 - March 15, 2024 + +### Fixes + +- Support different order json comment ([#148](https://github.com/get-select/dbt-snowflake-monitoring/pull/148)) + + + ## dbt-snowflake-monitoring 5.0.3 - January 16, 2024 ### Features