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 --
|
||||
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.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(
|
||||
icd.main_billing_country_iso_3_per_deal, 'UNSET'
|
||||
|
|
@ -35,4 +30,4 @@ where
|
|||
and icbs.is_missing_id_deal = false
|
||||
and icbsd.service_detail_created_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.id_deal,
|
||||
-- Dimensions --
|
||||
cs.service_business_type,
|
||||
cs.new_dash_version,
|
||||
cs.is_upgraded_service,
|
||||
cs.main_billing_country_iso_3_per_deal,
|
||||
|
|
@ -30,4 +29,4 @@ left join
|
|||
{{ ref("int_kpis__metric_daily_new_dash_created_services") }} cs
|
||||
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
|
||||
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.id_deal,
|
||||
-- Dimensions --
|
||||
cs.service_business_type,
|
||||
cs.new_dash_version,
|
||||
cs.is_upgraded_service,
|
||||
cs.main_billing_country_iso_3_per_deal,
|
||||
|
|
@ -30,4 +29,4 @@ left join
|
|||
{{ ref("int_kpis__metric_daily_new_dash_created_services") }} cs
|
||||
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
|
||||
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"
|
||||
- "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
|
||||
data_type: string
|
||||
description: |
|
||||
|
|
@ -5503,8 +5488,7 @@ models:
|
|||
- end_date,
|
||||
- service_name,
|
||||
- id_deal,
|
||||
- active_accommodations_per_deal_segmentation,
|
||||
- service_business_type.
|
||||
- active_accommodations_per_deal_segmentation.
|
||||
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
|
|
@ -5513,7 +5497,6 @@ models:
|
|||
- service_name
|
||||
- id_deal
|
||||
- active_accommodations_per_deal_segmentation
|
||||
- service_business_type
|
||||
|
||||
columns:
|
||||
- name: start_date
|
||||
|
|
@ -5542,21 +5525,6 @@ models:
|
|||
tests:
|
||||
- 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
|
||||
data_type: string
|
||||
description: |
|
||||
|
|
@ -5627,8 +5595,7 @@ models:
|
|||
- end_date,
|
||||
- service_name,
|
||||
- id_deal,
|
||||
- active_accommodations_per_deal_segmentation,
|
||||
- service_business_type.
|
||||
- active_accommodations_per_deal_segmentation.
|
||||
|
||||
tests:
|
||||
- dbt_utils.unique_combination_of_columns:
|
||||
|
|
@ -5637,7 +5604,6 @@ models:
|
|||
- service_name
|
||||
- id_deal
|
||||
- active_accommodations_per_deal_segmentation
|
||||
- service_business_type
|
||||
|
||||
columns:
|
||||
- name: start_date
|
||||
|
|
@ -5666,21 +5632,6 @@ models:
|
|||
tests:
|
||||
- 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
|
||||
data_type: string
|
||||
description: |
|
||||
|
|
@ -5782,7 +5733,6 @@ models:
|
|||
- by_new_dash_version
|
||||
- by_has_upgraded_service
|
||||
- by_service
|
||||
- by_service_business_type
|
||||
|
||||
- name: dimension_value
|
||||
data_type: string
|
||||
|
|
@ -5847,7 +5797,6 @@ models:
|
|||
- by_new_dash_version
|
||||
- by_has_upgraded_service
|
||||
- by_service
|
||||
- by_service_business_type
|
||||
|
||||
- name: dimension_value
|
||||
data_type: string
|
||||
|
|
@ -5905,7 +5854,6 @@ models:
|
|||
- by_new_dash_version
|
||||
- by_has_upgraded_service
|
||||
- by_service
|
||||
- by_service_business_type
|
||||
|
||||
- name: dimension_value
|
||||
data_type: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue