Addressed comments

This commit is contained in:
Joaquin 2025-03-25 17:29:55 +01:00
parent 20a8958679
commit 90581ea142
2 changed files with 4 additions and 4 deletions

View file

@ -39,7 +39,7 @@ select
pb.id_user_product_bundle,
pb.id_user as id_user_host,
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,
pb.product_bundle_name,
'PROTECTION' as service_business_type,
@ -47,6 +47,7 @@ select
coalesce(pp.protection_display_name, {{ var("default_service") }}) as service_name
from stg_core__user_product_bundle pb
inner join int_core__user_host uh on pb.id_user = uh.id_user_host
left join
inner join
stg_core__protection_plan pp
on coalesce(pb.id_protection_plan, 1) = pp.id_protection_plan
and pp.id_protection_plan <> {{ default_id_protection }}

View file

@ -3027,8 +3027,7 @@ models:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- id_user_product_bundle
- id_service
- service_source
- service_name
columns:
- name: id_user_product_bundle