diff --git a/models/intermediate/core/int_core__new_dash_user_overview.sql b/models/intermediate/core/int_core__new_dash_user_overview.sql index 40a4b61..e23dd20 100644 --- a/models/intermediate/core/int_core__new_dash_user_overview.sql +++ b/models/intermediate/core/int_core__new_dash_user_overview.sql @@ -134,7 +134,7 @@ with 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 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 ( select diff --git a/models/intermediate/resolutions/schema.yml b/models/intermediate/resolutions/schema.yml index 601b292..75cfb97 100644 --- a/models/intermediate/resolutions/schema.yml +++ b/models/intermediate/resolutions/schema.yml @@ -279,7 +279,8 @@ models: description: | "Unique Id that identifies the host." data_tests: - - not_null + - not_null: + where: "original_value_amount_in_host_currency > 0" - relationships: to: ref('stg_core__user') field: id_user