Skip to content

Commit

Permalink
Add database again
Browse files Browse the repository at this point in the history
  • Loading branch information
ilias1111 committed Sep 25, 2024
1 parent 64c7265 commit 18601e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions models/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version: 2
sources:
- name: atomic
schema: atomic
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
- name: derived
Expand Down
2 changes: 1 addition & 1 deletion models/snowplow_attribution_overview.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ You may obtain a copy of the Snowplow Personal and Academic License Version 1.0
config(
enabled=var('snowplow__enable_attribution_overview'),
sql_header=snowplow_utils.set_query_tag(var('snowplow__query_tag', 'snowplow_dbt')),
materialized= 'table' if target.type in ['spark','redshift'] else 'view'
materialized= 'table' if target.type in ['spark'] else 'view'
)
}}

Expand Down

0 comments on commit 18601e9

Please sign in to comment.