From ea5c756e11830ff09aa3ab3cbd7ea4b8cce45f6e Mon Sep 17 00:00:00 2001 From: morsapaes Date: Wed, 23 Nov 2022 22:40:58 +0100 Subject: [PATCH 1/4] Bump dbt-utils to v0.9.5 --- CHANGELOG.md | 2 +- README.md | 2 +- dbt-utils | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34c2c4a..67fede2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # materialize-dbt-utils Changelog -## Unreleased +## 0.6.0 - 2022-11-23 * Bump the minimum supported version of `dbt-materialize` to v1.3.0. diff --git a/README.md b/README.md index 4b447d6..228cbe5 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ packages: - package: dbt-labs/dbt_utils version: 0.9.2 - package: MaterializeInc/materialize_dbt_utils - version: 0.5.0 + version: 0.6.0 ``` Then set a `dispatch` config in your `dbt_project.yml`: diff --git a/dbt-utils b/dbt-utils index 51ed999..7c11123 160000 --- a/dbt-utils +++ b/dbt-utils @@ -1 +1 @@ -Subproject commit 51ed999a44fcc7f9f502be11e5f190f5bc84ba4b +Subproject commit 7c111237b511f42d0bd8ded8da9cf4255d5e83e5 From 7c40bd158ce33c8af1ac18b54f322226109c819c Mon Sep 17 00:00:00 2001 From: morsapaes Date: Wed, 23 Nov 2022 22:42:58 +0100 Subject: [PATCH 2/4] Bump materialize-dbt-utils to 0.6.0 --- README.md | 2 +- dbt_project.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 228cbe5..c4ee757 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ root dbt project: ``` packages: - package: dbt-labs/dbt_utils - version: 0.9.2 + version: 0.9.5 - package: MaterializeInc/materialize_dbt_utils version: 0.6.0 ``` diff --git a/dbt_project.yml b/dbt_project.yml index 9721454..e9851cf 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,5 +1,5 @@ name: 'materialize_dbt_utils' -version: '0.5.0' +version: '0.6.0' config-version: 2 require-dbt-version: [">=1.3.0", "<2.0.0"] From db9c08dab65236374713bce16c96958e403a159f Mon Sep 17 00:00:00 2001 From: morsapaes Date: Wed, 23 Nov 2022 22:47:22 +0100 Subject: [PATCH 3/4] Update MAINTAINER.md --- MAINTAINER.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MAINTAINER.md b/MAINTAINER.md index 2a76ce4..88a69ed 100644 --- a/MAINTAINER.md +++ b/MAINTAINER.md @@ -2,23 +2,23 @@ ## Bumping dependency versions -To update the tested version of dbt-materialize, bump the version specification +To update the tested version of `dbt-materialize`, bump the version specification in the `pip install` invocation in [.github/workflows/main.yml]. To update the tested version of `materialized`, bump the version specification in the `services` specification in [.github/workflows/main.yml]. We explicitly avoid depending on `latest` so that CI is deterministic. -To update the embedded dbt-utils: +To update the embedded `dbt-utils`: ```shell cd dbt-utils -git checkout vVERSION -git pull +git fetch origin +git checkout VERSION cd .. # Update dbt-utils version in README.md # Update compatibility matrix for new macros/schema-tests in README.md. -git commit -am 'Update dbt-utils' +git commit -am 'Bump dbt-utils to VERSION' ``` ## Cutting a new release From 0ae342f298e4a7e19733e2ac7c57f4b96e27a941 Mon Sep 17 00:00:00 2001 From: morsapaes Date: Thu, 24 Nov 2022 19:03:56 +0100 Subject: [PATCH 4/4] Disable unsupported tests --- integration_tests/dbt_utils/dbt_project.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/integration_tests/dbt_utils/dbt_project.yml b/integration_tests/dbt_utils/dbt_project.yml index d47b970..ad50029 100644 --- a/integration_tests/dbt_utils/dbt_project.yml +++ b/integration_tests/dbt_utils/dbt_project.yml @@ -26,10 +26,20 @@ models: # Tested by test_date_spine_override. test_date_spine: +enabled: false - schema_tests: + generic_tests: # Tested by test_recency_override. test_recency: +enabled: false + cross_db_utils: + # Materialize does not support the bool_or function + test_bool_or: + +enabled: false + # Materialize does not support the array_append function + test_array_append: + +enabled: false + # TODO(morsapaes): Enable once materialize #15863 lands (with an override, not error) + test_listagg: + +enabled: false seeds: dbt_utils_integration_tests: