Skip to content

Commit 9fa70d4

Browse files
authored
Configure namespace for all models leveraging the existing package variables (#31)
* Update dbt_project.yml * Updated dbt_project.yml * Update dq_issue_log.sql
1 parent b7d6272 commit 9fa70d4

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

dbt_project.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,9 @@ vars:
2222
# by_table_fqn: []
2323
# >> for metricflow
2424
# dbt_dq_tool_start_date
25-
# dbt_dq_tool_end_date
25+
# dbt_dq_tool_end_date
26+
27+
models:
28+
dq_tools:
29+
+database: "{{ var('dbt_dq_tool_database', target.database) }}"
30+
+schema: "{{ var('dbt_dq_tool_schema', target.schema) }}"

models/01_lake/dq_issue_log.sql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{{
22
config(
3-
database = var('dbt_dq_tool_database', target.database),
4-
schema = var('dbt_dq_tool_schema', target.schema),
53
materialized = 'incremental',
64
on_schema_change = 'append_new_columns',
75
full_refresh = var('dbt_dq_tool_full_refresh', false)
@@ -35,4 +33,4 @@ select cast(null as {{ dbt.type_timestamp() }}) as check_timestamp
3533

3634
from dummy
3735

38-
where 1=0
36+
where 1=0

0 commit comments

Comments
 (0)