Addressed comments
This commit is contained in:
parent
20a8958679
commit
90581ea142
2 changed files with 4 additions and 4 deletions
|
|
@ -39,7 +39,7 @@ select
|
||||||
pb.id_user_product_bundle,
|
pb.id_user_product_bundle,
|
||||||
pb.id_user as id_user_host,
|
pb.id_user as id_user_host,
|
||||||
pb.id_product_bundle,
|
pb.id_product_bundle,
|
||||||
coalesce(pb.id_protection_plan, {{ default_id_protection }}) as id_service,
|
pb.id_protection_plan as id_service,
|
||||||
'PROTECTION' as service_source,
|
'PROTECTION' as service_source,
|
||||||
pb.product_bundle_name,
|
pb.product_bundle_name,
|
||||||
'PROTECTION' as service_business_type,
|
'PROTECTION' as service_business_type,
|
||||||
|
|
@ -47,6 +47,7 @@ select
|
||||||
coalesce(pp.protection_display_name, {{ var("default_service") }}) as service_name
|
coalesce(pp.protection_display_name, {{ var("default_service") }}) as service_name
|
||||||
from stg_core__user_product_bundle pb
|
from stg_core__user_product_bundle pb
|
||||||
inner join int_core__user_host uh on pb.id_user = uh.id_user_host
|
inner join int_core__user_host uh on pb.id_user = uh.id_user_host
|
||||||
left join
|
inner join
|
||||||
stg_core__protection_plan pp
|
stg_core__protection_plan pp
|
||||||
on coalesce(pb.id_protection_plan, 1) = pp.id_protection_plan
|
on coalesce(pb.id_protection_plan, 1) = pp.id_protection_plan
|
||||||
|
and pp.id_protection_plan <> {{ default_id_protection }}
|
||||||
|
|
|
||||||
|
|
@ -3027,8 +3027,7 @@ models:
|
||||||
- dbt_utils.unique_combination_of_columns:
|
- dbt_utils.unique_combination_of_columns:
|
||||||
combination_of_columns:
|
combination_of_columns:
|
||||||
- id_user_product_bundle
|
- id_user_product_bundle
|
||||||
- id_service
|
- service_name
|
||||||
- service_source
|
|
||||||
|
|
||||||
columns:
|
columns:
|
||||||
- name: id_user_product_bundle
|
- name: id_user_product_bundle
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue