Cleaned commit
This commit is contained in:
parent
4e6690c013
commit
c6a03d531a
4 changed files with 5 additions and 64 deletions
|
|
@ -7,11 +7,6 @@ select
|
||||||
-- Dimensions --
|
-- Dimensions --
|
||||||
coalesce(icbs.id_deal, 'UNSET') as id_deal,
|
coalesce(icbs.id_deal, 'UNSET') as id_deal,
|
||||||
case when icbsd.is_upgraded_service then 'YES' else 'NO' end as is_upgraded_service,
|
case when icbsd.is_upgraded_service then 'YES' else 'NO' end as is_upgraded_service,
|
||||||
case
|
|
||||||
when icbsd.service_business_type = 'UNKNOWN'
|
|
||||||
then 'UNSET'
|
|
||||||
else coalesce(icbsd.service_business_type, 'UNSET')
|
|
||||||
end as service_business_type,
|
|
||||||
coalesce(icbs.new_dash_version, 'UNSET') as new_dash_version,
|
coalesce(icbs.new_dash_version, 'UNSET') as new_dash_version,
|
||||||
coalesce(
|
coalesce(
|
||||||
icd.main_billing_country_iso_3_per_deal, 'UNSET'
|
icd.main_billing_country_iso_3_per_deal, 'UNSET'
|
||||||
|
|
@ -35,4 +30,4 @@ where
|
||||||
and icbs.is_missing_id_deal = false
|
and icbs.is_missing_id_deal = false
|
||||||
and icbsd.service_detail_created_at_utc
|
and icbsd.service_detail_created_at_utc
|
||||||
>= icbs.user_in_new_dash_since_timestamp_at_utc
|
>= icbs.user_in_new_dash_since_timestamp_at_utc
|
||||||
group by 1, 2, 3, 4, 5, 6, 7, 8, 9
|
group by 1, 2, 3, 4, 5, 6, 7, 8
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ select
|
||||||
cs.active_accommodations_per_deal_segmentation,
|
cs.active_accommodations_per_deal_segmentation,
|
||||||
cs.id_deal,
|
cs.id_deal,
|
||||||
-- Dimensions --
|
-- Dimensions --
|
||||||
cs.service_business_type,
|
|
||||||
cs.new_dash_version,
|
cs.new_dash_version,
|
||||||
cs.is_upgraded_service,
|
cs.is_upgraded_service,
|
||||||
cs.main_billing_country_iso_3_per_deal,
|
cs.main_billing_country_iso_3_per_deal,
|
||||||
|
|
@ -30,4 +29,4 @@ left join
|
||||||
{{ ref("int_kpis__metric_daily_new_dash_created_services") }} cs
|
{{ ref("int_kpis__metric_daily_new_dash_created_services") }} cs
|
||||||
on date_trunc('month', cs.date)::date = d.first_day_month
|
on date_trunc('month', cs.date)::date = d.first_day_month
|
||||||
where d.is_end_of_month = true and cs.id_deal is not null
|
where d.is_end_of_month = true and cs.id_deal is not null
|
||||||
group by 1, 2, 3, 4, 5, 6, 7, 8, 9
|
group by 1, 2, 3, 4, 5, 6, 7, 8
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@ select
|
||||||
cs.active_accommodations_per_deal_segmentation,
|
cs.active_accommodations_per_deal_segmentation,
|
||||||
cs.id_deal,
|
cs.id_deal,
|
||||||
-- Dimensions --
|
-- Dimensions --
|
||||||
cs.service_business_type,
|
|
||||||
cs.new_dash_version,
|
cs.new_dash_version,
|
||||||
cs.is_upgraded_service,
|
cs.is_upgraded_service,
|
||||||
cs.main_billing_country_iso_3_per_deal,
|
cs.main_billing_country_iso_3_per_deal,
|
||||||
|
|
@ -30,4 +29,4 @@ left join
|
||||||
{{ ref("int_kpis__metric_daily_new_dash_created_services") }} cs
|
{{ ref("int_kpis__metric_daily_new_dash_created_services") }} cs
|
||||||
on date_trunc('week', cs.date)::date = d.first_day_week
|
on date_trunc('week', cs.date)::date = d.first_day_week
|
||||||
where d.is_end_of_week = true and cs.id_deal is not null
|
where d.is_end_of_week = true and cs.id_deal is not null
|
||||||
group by 1, 2, 3, 4, 5, 6, 7, 8, 9
|
group by 1, 2, 3, 4, 5, 6, 7, 8
|
||||||
|
|
|
||||||
|
|
@ -5438,21 +5438,6 @@ models:
|
||||||
- "YES"
|
- "YES"
|
||||||
- "NO"
|
- "NO"
|
||||||
|
|
||||||
- name: service_business_type
|
|
||||||
data_type: string
|
|
||||||
description: |
|
|
||||||
Identifies the service type (Screening, Deposit Management, Protection)
|
|
||||||
according to New Pricing documentation.
|
|
||||||
Cannot be null.
|
|
||||||
tests:
|
|
||||||
- not_null
|
|
||||||
- accepted_values:
|
|
||||||
values:
|
|
||||||
- "SCREENING"
|
|
||||||
- "PROTECTION"
|
|
||||||
- "DEPOSIT_MANAGEMENT"
|
|
||||||
- "UNSET"
|
|
||||||
|
|
||||||
- name: new_dash_version
|
- name: new_dash_version
|
||||||
data_type: string
|
data_type: string
|
||||||
description: |
|
description: |
|
||||||
|
|
@ -5503,8 +5488,7 @@ models:
|
||||||
- end_date,
|
- end_date,
|
||||||
- service_name,
|
- service_name,
|
||||||
- id_deal,
|
- id_deal,
|
||||||
- active_accommodations_per_deal_segmentation,
|
- active_accommodations_per_deal_segmentation.
|
||||||
- service_business_type.
|
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
- dbt_utils.unique_combination_of_columns:
|
- dbt_utils.unique_combination_of_columns:
|
||||||
|
|
@ -5513,7 +5497,6 @@ models:
|
||||||
- service_name
|
- service_name
|
||||||
- id_deal
|
- id_deal
|
||||||
- active_accommodations_per_deal_segmentation
|
- active_accommodations_per_deal_segmentation
|
||||||
- service_business_type
|
|
||||||
|
|
||||||
columns:
|
columns:
|
||||||
- name: start_date
|
- name: start_date
|
||||||
|
|
@ -5542,21 +5525,6 @@ models:
|
||||||
tests:
|
tests:
|
||||||
- not_null
|
- not_null
|
||||||
|
|
||||||
- name: service_business_type
|
|
||||||
data_type: string
|
|
||||||
description: |
|
|
||||||
Identifies the service type (Screening, Deposit Management, Protection)
|
|
||||||
according to New Pricing documentation.
|
|
||||||
Cannot be null.
|
|
||||||
tests:
|
|
||||||
- not_null
|
|
||||||
- accepted_values:
|
|
||||||
values:
|
|
||||||
- "SCREENING"
|
|
||||||
- "PROTECTION"
|
|
||||||
- "DEPOSIT_MANAGEMENT"
|
|
||||||
- "UNSET"
|
|
||||||
|
|
||||||
- name: is_upgraded_service
|
- name: is_upgraded_service
|
||||||
data_type: string
|
data_type: string
|
||||||
description: |
|
description: |
|
||||||
|
|
@ -5627,8 +5595,7 @@ models:
|
||||||
- end_date,
|
- end_date,
|
||||||
- service_name,
|
- service_name,
|
||||||
- id_deal,
|
- id_deal,
|
||||||
- active_accommodations_per_deal_segmentation,
|
- active_accommodations_per_deal_segmentation.
|
||||||
- service_business_type.
|
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
- dbt_utils.unique_combination_of_columns:
|
- dbt_utils.unique_combination_of_columns:
|
||||||
|
|
@ -5637,7 +5604,6 @@ models:
|
||||||
- service_name
|
- service_name
|
||||||
- id_deal
|
- id_deal
|
||||||
- active_accommodations_per_deal_segmentation
|
- active_accommodations_per_deal_segmentation
|
||||||
- service_business_type
|
|
||||||
|
|
||||||
columns:
|
columns:
|
||||||
- name: start_date
|
- name: start_date
|
||||||
|
|
@ -5666,21 +5632,6 @@ models:
|
||||||
tests:
|
tests:
|
||||||
- not_null
|
- not_null
|
||||||
|
|
||||||
- name: service_business_type
|
|
||||||
data_type: string
|
|
||||||
description: |
|
|
||||||
Identifies the service type (Screening, Deposit Management, Protection)
|
|
||||||
according to New Pricing documentation.
|
|
||||||
Cannot be null.
|
|
||||||
tests:
|
|
||||||
- not_null
|
|
||||||
- accepted_values:
|
|
||||||
values:
|
|
||||||
- "SCREENING"
|
|
||||||
- "PROTECTION"
|
|
||||||
- "DEPOSIT_MANAGEMENT"
|
|
||||||
- "UNSET"
|
|
||||||
|
|
||||||
- name: is_upgraded_service
|
- name: is_upgraded_service
|
||||||
data_type: string
|
data_type: string
|
||||||
description: |
|
description: |
|
||||||
|
|
@ -5782,7 +5733,6 @@ models:
|
||||||
- by_new_dash_version
|
- by_new_dash_version
|
||||||
- by_has_upgraded_service
|
- by_has_upgraded_service
|
||||||
- by_service
|
- by_service
|
||||||
- by_service_business_type
|
|
||||||
|
|
||||||
- name: dimension_value
|
- name: dimension_value
|
||||||
data_type: string
|
data_type: string
|
||||||
|
|
@ -5847,7 +5797,6 @@ models:
|
||||||
- by_new_dash_version
|
- by_new_dash_version
|
||||||
- by_has_upgraded_service
|
- by_has_upgraded_service
|
||||||
- by_service
|
- by_service
|
||||||
- by_service_business_type
|
|
||||||
|
|
||||||
- name: dimension_value
|
- name: dimension_value
|
||||||
data_type: string
|
data_type: string
|
||||||
|
|
@ -5905,7 +5854,6 @@ models:
|
||||||
- by_new_dash_version
|
- by_new_dash_version
|
||||||
- by_has_upgraded_service
|
- by_has_upgraded_service
|
||||||
- by_service
|
- by_service
|
||||||
- by_service_business_type
|
|
||||||
|
|
||||||
- name: dimension_value
|
- name: dimension_value
|
||||||
data_type: string
|
data_type: string
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue