From 69ff24fad8caa13881a5618b3a8d17c84f35764d Mon Sep 17 00:00:00 2001 From: Niall Woodward Date: Thu, 24 Aug 2023 16:40:19 +0100 Subject: [PATCH 1/2] Sort contract numbers by nulls last --- models/remaining_balance_daily_without_contract_view.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/remaining_balance_daily_without_contract_view.sql b/models/remaining_balance_daily_without_contract_view.sql index e03a1de..cc1f55d 100644 --- a/models/remaining_balance_daily_without_contract_view.sql +++ b/models/remaining_balance_daily_without_contract_view.sql @@ -13,4 +13,4 @@ from {{ ref('stg_remaining_balance_daily') }} Assume the higher contract_number is more recent. Chose not to group by date and aggregate balances in case the currency changes.. #} -qualify row_number() over (partition by date order by contract_number desc) = 1 +qualify row_number() over (partition by date order by contract_number desc nulls last) = 1 From 2418b2ee45efa1eacae6e77fd7e43d0793b7d8d1 Mon Sep 17 00:00:00 2001 From: Niall Woodward Date: Thu, 24 Aug 2023 16:41:38 +0100 Subject: [PATCH 2/2] New release --- .changes/4.5.1.md | 7 +++++++ CHANGELOG.md | 8 ++++++++ dbt_project.yml | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 .changes/4.5.1.md diff --git a/.changes/4.5.1.md b/.changes/4.5.1.md new file mode 100644 index 0000000..414dc66 --- /dev/null +++ b/.changes/4.5.1.md @@ -0,0 +1,7 @@ +## dbt-snowflake-monitoring 4.5.1 - August 24, 2023 + +### Fixes + +- Sort remaining balance daily with null contract numbers last ([#128](https://github.com/get-select/dbt-snowflake-monitoring/pull/128)) + + diff --git a/CHANGELOG.md b/CHANGELOG.md index 409789b..ac0de55 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 4.5.1 - August 24, 2023 + +### Fixes + +- Sort remaining balance daily with null contract numbers last ([#128](https://github.com/get-select/dbt-snowflake-monitoring/pull/128)) + + + ## dbt-snowflake-monitoring 4.5.0 - August 09, 2023 ### Features diff --git a/dbt_project.yml b/dbt_project.yml index cd4958d..717b383 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,5 +1,5 @@ name: 'dbt_snowflake_monitoring' -version: '4.5.0' +version: '4.5.1' config-version: 2 profile: dbt_snowflake_monitoring