From fb2483def7e3272b38e9a87d0c26a5ff06ce6df0 Mon Sep 17 00:00:00 2001 From: Josh Andrews Date: Wed, 20 Oct 2021 15:38:58 -0700 Subject: [PATCH] Fixing an issue where the mutually exclusive range test doesn't work with store failures with a multi-column concatenated partition by clause. As per: https://github.com/dbt-labs/dbt-utils/issues/423 --- macros/schema_tests/mutually_exclusive_ranges.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/schema_tests/mutually_exclusive_ranges.sql b/macros/schema_tests/mutually_exclusive_ranges.sql index f2da3b95..f88efbe4 100644 --- a/macros/schema_tests/mutually_exclusive_ranges.sql +++ b/macros/schema_tests/mutually_exclusive_ranges.sql @@ -35,7 +35,7 @@ with window_functions as ( select {% if partition_by %} - {{ partition_by }}, + {{ partition_by }} as partition_by_col, {% endif %} {{ lower_bound_column }} as lower_bound, {{ upper_bound_column }} as upper_bound,