commit wip
This commit is contained in:
parent
721f3e4e9e
commit
2c5301c158
4 changed files with 46 additions and 60 deletions
|
|
@ -3,8 +3,8 @@
|
|||
materialized="table",
|
||||
unique_key=[
|
||||
"date",
|
||||
"id_user_host",
|
||||
"product_bundle_name",
|
||||
"id_deal",
|
||||
"id_user_product_bundle",
|
||||
"service_name",
|
||||
"service_business_type",
|
||||
],
|
||||
|
|
@ -13,12 +13,11 @@
|
|||
select
|
||||
-- Unique Key --
|
||||
dd.date,
|
||||
bs.id_user_host,
|
||||
bs.product_bundle_name,
|
||||
bs.product_display_name as service_name,
|
||||
uh.id_deal,
|
||||
bs.id_user_product_bundle,
|
||||
bs.service_name,
|
||||
bs.service_business_type,
|
||||
-- Dimensions --
|
||||
coalesce(uh.id_deal, 'UNSET') as id_deal,
|
||||
case when bs.is_default_service then 'NO' else 'YES' end as is_upgraded_service,
|
||||
coalesce(uh.new_dash_version, 'UNSET') as new_dash_version,
|
||||
coalesce(
|
||||
|
|
|
|||
|
|
@ -7392,8 +7392,8 @@ models:
|
|||
The unique key corresponds to the deepest granularity of the model,
|
||||
in this case:
|
||||
- date,
|
||||
- id_user_host,
|
||||
- product_bundle_name,
|
||||
- id_deal,
|
||||
- id_user_product_bundle,
|
||||
- service_name,
|
||||
- service_business_type
|
||||
|
||||
|
|
@ -7401,7 +7401,7 @@ models:
|
|||
- dbt_utils.unique_combination_of_columns:
|
||||
combination_of_columns:
|
||||
- date
|
||||
- id_user_host
|
||||
- id_deal
|
||||
- id_user_product_bundle
|
||||
- service_name
|
||||
- service_business_type
|
||||
|
|
@ -7413,15 +7413,15 @@ models:
|
|||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: id_user_host
|
||||
data_type: bigint
|
||||
description: Unique identifier of the User Host.
|
||||
- name: id_deal
|
||||
data_type: string
|
||||
description: Unique identifier of an account.
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: product_bundle_name
|
||||
data_type: string
|
||||
description: Name of the product bundle.
|
||||
- name: id_user_product_bundle
|
||||
data_type: bigint
|
||||
description: Unique identifier of the User Product Bundle.
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
|
|
@ -7431,24 +7431,6 @@ models:
|
|||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: id_deal
|
||||
data_type: string
|
||||
description: Unique identifier of an account.
|
||||
data_tests:
|
||||
- not_null
|
||||
|
||||
- name: is_upgraded_service
|
||||
data_type: string
|
||||
description: |
|
||||
Whether the service is an upgraded version of the
|
||||
default. In other words, if it's not Basic Screening.
|
||||
data_tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
- "YES"
|
||||
- "NO"
|
||||
|
||||
- name: service_business_type
|
||||
data_type: string
|
||||
description: |
|
||||
|
|
@ -7466,6 +7448,18 @@ models:
|
|||
- "UNKNOWN"
|
||||
- "UNSET"
|
||||
|
||||
- name: is_upgraded_service
|
||||
data_type: string
|
||||
description: |
|
||||
Whether the service is an upgraded version of the
|
||||
default. In other words, if it's not Basic Screening.
|
||||
data_tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values:
|
||||
- "YES"
|
||||
- "NO"
|
||||
|
||||
- name: new_dash_version
|
||||
data_type: string
|
||||
description: |
|
||||
|
|
@ -7495,4 +7489,4 @@ models:
|
|||
description: |
|
||||
Main billing country of the host aggregated at Deal level.
|
||||
data_tests:
|
||||
- not_null
|
||||
- not_null
|
||||
Loading…
Add table
Add a link
Reference in a new issue