Update name of fields
This commit is contained in:
parent
bd25b473fb
commit
0c311d02e8
7 changed files with 32 additions and 30 deletions
|
|
@ -47,8 +47,10 @@ with
|
|||
select
|
||||
cd.id_deal,
|
||||
cd.main_deal_name,
|
||||
case when ipd.distinct_active_pms is null then false else true end as active_pms,
|
||||
ipd.distinct_active_pms as pms,
|
||||
case
|
||||
when ipd.distinct_active_pms is null then false else true
|
||||
end as has_active_pms,
|
||||
ipd.distinct_active_pms as active_pms_list,
|
||||
cd.main_billing_country_iso_3_per_deal,
|
||||
cd.effective_deal_start_date_utc
|
||||
from combined_deals cd
|
||||
|
|
|
|||
|
|
@ -450,17 +450,17 @@ models:
|
|||
in both systems, Hubspot data will take precedence in terms of deal name.
|
||||
tests:
|
||||
- not_null
|
||||
- name: active_pms
|
||||
- name: has_active_pms
|
||||
data_type: boolean
|
||||
description: |
|
||||
Does the deal have an active associated PMS.
|
||||
tests:
|
||||
- not_null
|
||||
- name: pms
|
||||
- name: active_pms_list
|
||||
data_type: string
|
||||
description: |
|
||||
Name of the active PMS associated with the deal. It can have more than
|
||||
one PMS associated with it. It can be null doesn't have any PMS associated.
|
||||
one PMS associated with it. It can be null if it doesn't have any PMS associated.
|
||||
- name: main_billing_country_iso_3_per_deal
|
||||
data_type: string
|
||||
description: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue