From 9c1808e36d27c96918fdbf53ff91b49ac52f6b53 Mon Sep 17 00:00:00 2001 From: Teghan Nightengale Date: Tue, 28 May 2024 14:29:10 -0400 Subject: [PATCH] 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,