reporting table
This commit is contained in:
parent
cf93b58092
commit
177c07d683
3 changed files with 10 additions and 3 deletions
|
|
@ -32,12 +32,12 @@ clean-targets: # directories to be removed by `dbt clean`
|
||||||
# files using the `{{ config(...) }}` macro.
|
# files using the `{{ config(...) }}` macro.
|
||||||
models:
|
models:
|
||||||
dwh_dbt:
|
dwh_dbt:
|
||||||
# Config indicated by + and applies to all files under models/example/
|
|
||||||
example:
|
|
||||||
+materialized: view
|
|
||||||
staging:
|
staging:
|
||||||
+materialized: table
|
+materialized: table
|
||||||
+schema: staging
|
+schema: staging
|
||||||
working:
|
working:
|
||||||
+materialized: view
|
+materialized: view
|
||||||
+schema: working
|
+schema: working
|
||||||
|
reporting:
|
||||||
|
+materialized: table
|
||||||
|
+schema: reporting
|
||||||
3
models/reporting/rpg_core_dq_dealid_health.sql
Normal file
3
models/reporting/rpg_core_dq_dealid_health.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
with wkg_core_dq_dealid_health as (select * from {{ ref("wkg_core_dq_dealid_health") }})
|
||||||
|
select *
|
||||||
|
from wkg_core_dq_dealid_health
|
||||||
4
models/working/wkg_core_dq_dealid_health.sql
Normal file
4
models/working/wkg_core_dq_dealid_health.sql
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
with wkg_core_unified_user as (select * from {{ ref("wkg_core_unified_user") }})
|
||||||
|
select id_deal, count(1) as users_with_this_id_deal
|
||||||
|
from wkg_core_unified_user
|
||||||
|
group by id_deal
|
||||||
Loading…
Add table
Add a link
Reference in a new issue