From b63a562fb0fd89138f00e5959333bc4e150254e0 Mon Sep 17 00:00:00 2001 From: Jeremy Cohen Date: Wed, 17 Nov 2021 11:01:13 +0100 Subject: [PATCH] Remove duplicated unique test (#108) * Remove duplicated unique test * Use unique_combination_of_columns instead --- models/page_views/schema.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/models/page_views/schema.yml b/models/page_views/schema.yml index 8be2834..c7ae1e3 100644 --- a/models/page_views/schema.yml +++ b/models/page_views/schema.yml @@ -13,10 +13,6 @@ models: tests: - not_null - - name: domain_sessionid - tests: - - not_null - - name: domain_sessionid tests: - not_null @@ -54,8 +50,10 @@ models: - name: snowplow_web_page_context tests: - - unique: - column_name: "concat(page_view_id, root_id)" + - dbt_utils.unique_combination_of_columns: + combination_of_columns: + - page_view_id + - root_id columns: - name: page_view_id