exclude deals without lifecycle
This commit is contained in:
parent
a8927b7a44
commit
986c9f85a8
2 changed files with 3 additions and 2 deletions
|
|
@ -134,7 +134,7 @@ with
|
||||||
left join atpb_aggregation atpb on upb.id_user_host = atpb.id_user_host
|
left join atpb_aggregation atpb on upb.id_user_host = atpb.id_user_host
|
||||||
left join btpb_aggregation btpb on upb.id_user_host = btpb.id_user_host
|
left join btpb_aggregation btpb on upb.id_user_host = btpb.id_user_host
|
||||||
inner join int_core__user_host uh on upb.id_user_host = uh.id_user_host
|
inner join int_core__user_host uh on upb.id_user_host = uh.id_user_host
|
||||||
left join int_kpis__lifecycle_daily_deal kldd on uh.id_deal = kldd.id_deal
|
inner join int_kpis__lifecycle_daily_deal kldd on uh.id_deal = kldd.id_deal
|
||||||
),
|
),
|
||||||
user_with_boolean_features as (
|
user_with_boolean_features as (
|
||||||
select
|
select
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,8 @@ models:
|
||||||
description: |
|
description: |
|
||||||
"Unique Id that identifies the host."
|
"Unique Id that identifies the host."
|
||||||
data_tests:
|
data_tests:
|
||||||
- not_null
|
- not_null:
|
||||||
|
where: "original_value_amount_in_host_currency > 0"
|
||||||
- relationships:
|
- relationships:
|
||||||
to: ref('stg_core__user')
|
to: ref('stg_core__user')
|
||||||
field: id_user
|
field: id_user
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue