From 3ed12c263ef276603cda147626087a301c2bb61d Mon Sep 17 00:00:00 2001 From: Teghan Nightengale Date: Tue, 28 May 2024 13:25:40 -0400 Subject: [PATCH 1/5] feat: add root_query_id, parent_query_id to stg_query_history --- dbt_project.yml | 2 +- models/staging/stg_query_history.sql | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/dbt_project.yml b/dbt_project.yml index d609f51..d2392bc 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,5 +1,5 @@ name: 'dbt_snowflake_monitoring' -version: '5.1.2' +version: '5.1.3' config-version: 2 profile: dbt_snowflake_monitoring diff --git a/models/staging/stg_query_history.sql b/models/staging/stg_query_history.sql index e7da17c..1cb2ca2 100644 --- a/models/staging/stg_query_history.sql +++ b/models/staging/stg_query_history.sql @@ -5,6 +5,8 @@ select query_id, + parent_query_id, + root_parent_id, query_text, database_id, database_name, From e5ae04dbe1a095064e7e58a05e9c952849b59496 Mon Sep 17 00:00:00 2001 From: Teghan Nightengale Date: Tue, 28 May 2024 13:27:45 -0400 Subject: [PATCH 2/5] fix: spelling --- models/staging/stg_query_history.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/staging/stg_query_history.sql b/models/staging/stg_query_history.sql index 1cb2ca2..83ea4a7 100644 --- a/models/staging/stg_query_history.sql +++ b/models/staging/stg_query_history.sql @@ -6,7 +6,7 @@ select query_id, parent_query_id, - root_parent_id, + root_query_id, query_text, database_id, database_name, From a505c6d84b3313ee946ed97f6087ca155848d69f Mon Sep 17 00:00:00 2001 From: Teghan Nightengale Date: Tue, 28 May 2024 14:06:14 -0400 Subject: [PATCH 3/5] docs: add changie files --- .changes/5.2.0.md | 9 +++++++++ CHANGELOG.md | 10 ++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .changes/5.2.0.md diff --git a/.changes/5.2.0.md b/.changes/5.2.0.md new file mode 100644 index 0000000..2fe71c7 --- /dev/null +++ b/.changes/5.2.0.md @@ -0,0 +1,9 @@ +## dbt-snowflake-monitoring 5.2.0 - May 28, 2024 + +### Features + +- Add root_query_id, parent_query_id to stg_query_history ([#156](https://github.com/get-select/dbt-snowflake-monitoring/pull/156)) + +### Contributors +- [@tnightengale](https://github.com/tnightengale) (Features) + diff --git a/CHANGELOG.md b/CHANGELOG.md index 28b513b..679f15f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ 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.2.0 - May 28, 2024 + +### Features + +- Add root_query_id, parent_query_id to stg_query_history ([#156](https://github.com/get-select/dbt-snowflake-monitoring/pull/156)) + +### Contributors +- [@tnightengale](https://github.com/tnightengale) (Features) + + ## dbt-snowflake-monitoring 5.1.2 - May 23, 2024 ### Fixes From 44c8a742cb1f1a4766fadaabd1dd189167103de1 Mon Sep 17 00:00:00 2001 From: Teghan Nightengale Date: Tue, 28 May 2024 14:07:19 -0400 Subject: [PATCH 4/5] docs: fix semver on dbt_project.yml --- dbt_project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt_project.yml b/dbt_project.yml index d2392bc..a06cc4b 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,5 +1,5 @@ name: 'dbt_snowflake_monitoring' -version: '5.1.3' +version: '5.2.0' config-version: 2 profile: dbt_snowflake_monitoring From 9c1808e36d27c96918fdbf53ff91b49ac52f6b53 Mon Sep 17 00:00:00 2001 From: Teghan Nightengale Date: Tue, 28 May 2024 14:29:10 -0400 Subject: [PATCH 5/5] fix: access not staging --- .changes/5.2.0.md | 2 +- CHANGELOG.md | 2 +- models/staging/stg_access_history.sql | 2 ++ models/staging/stg_query_history.sql | 2 -- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.changes/5.2.0.md b/.changes/5.2.0.md index 2fe71c7..5691301 100644 --- a/.changes/5.2.0.md +++ b/.changes/5.2.0.md @@ -2,7 +2,7 @@ ### Features -- Add root_query_id, parent_query_id to stg_query_history ([#156](https://github.com/get-select/dbt-snowflake-monitoring/pull/156)) +- Add root_query_id, parent_query_id to stg_access_history ([#156](https://github.com/get-select/dbt-snowflake-monitoring/pull/156)) ### Contributors - [@tnightengale](https://github.com/tnightengale) (Features) diff --git a/CHANGELOG.md b/CHANGELOG.md index 679f15f..4c06e8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ and is generated by [Changie](https://github.com/miniscruff/changie). ### Features -- Add root_query_id, parent_query_id to stg_query_history ([#156](https://github.com/get-select/dbt-snowflake-monitoring/pull/156)) +- Add root_query_id, parent_query_id to stg_access_history ([#156](https://github.com/get-select/dbt-snowflake-monitoring/pull/156)) ### Contributors - [@tnightengale](https://github.com/tnightengale) (Features) diff --git a/models/staging/stg_access_history.sql b/models/staging/stg_access_history.sql index aad63d3..cb5b0be 100644 --- a/models/staging/stg_access_history.sql +++ b/models/staging/stg_access_history.sql @@ -2,6 +2,8 @@ select query_id, + parent_query_id, + root_query_id, query_start_time, user_name, direct_objects_accessed, diff --git a/models/staging/stg_query_history.sql b/models/staging/stg_query_history.sql index 83ea4a7..e7da17c 100644 --- a/models/staging/stg_query_history.sql +++ b/models/staging/stg_query_history.sql @@ -5,8 +5,6 @@ select query_id, - parent_query_id, - root_query_id, query_text, database_id, database_name,