From f14bc8e599781588ea330488fe8222d0cc3689e3 Mon Sep 17 00:00:00 2001 From: Ilias Xenogiannis Date: Wed, 18 Sep 2024 15:29:03 +0300 Subject: [PATCH] Updates --- integration_tests/dbt_project.yml | 4 ++-- models/base/src_base.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 3b7f82c..539d5f3 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -42,8 +42,8 @@ models: +enabled: '{{ target.type == "snowflake" | as_bool() }}' snowplow_media_player: +persist_docs: - relation: '{{ false if target.type in ["spark"] else true }}' - columns: '{{ false if target.type in ["spark"] else true }}' + relation: '{{ false if target.type in ["spark","databrick"] else true }}' + columns: '{{ false if target.type in ["spark","databrick"] else true }}' custom: +enabled: true diff --git a/models/base/src_base.yml b/models/base/src_base.yml index f09f695..bf87251 100644 --- a/models/base/src_base.yml +++ b/models/base/src_base.yml @@ -3,6 +3,7 @@ version: 2 sources: - name: atomic schema: "{{ var('snowplow__atomic_schema', 'atomic') if project_name != 'snowplow_media_player_integration_tests' else target.schema~'_snplw_media_player_int_tests' }}" + database: "{{ var('snowplow__database', target.database) if target.type not in ['databricks', 'spark'] else var('snowplow__databricks_catalog', 'hive_metastore') if target.type in ['databricks'] else none }}" tables: - name: events identifier: "{{ var('snowplow__events_table', 'events') if project_name != 'snowplow_media_player_integration_tests' else 'snowplow_media_player_events_stg' }}"