addressed Pablo's comments, removed the repetitive casts, added some nut_null tests and fixed some of the names and descriptions discrepancies
This commit is contained in:
parent
ad2eb2544c
commit
6adc424963
6 changed files with 96 additions and 48 deletions
|
|
@ -5,10 +5,11 @@ with
|
|||
select
|
||||
year_month_created as year_month_created,
|
||||
year_month_checkout as year_month_checkout,
|
||||
id_user_host as id_user_host,
|
||||
id_user_partner as id_user_partner,
|
||||
bookings_per_month as bookings_per_month,
|
||||
cancelled_per_month as cancelled_per_month,
|
||||
cancelled_ratio as cancelled_ratio,
|
||||
is_cancellation_threshold_surpassed as is_cancellation_threshold_surpassed,
|
||||
sum_cancelled_fee as sum_cancelled_fee,
|
||||
sum_ok_status_fee as sum_ok_status_fee,
|
||||
sum_rejected_fee as sum_rejected_fee,
|
||||
|
|
@ -14,19 +14,25 @@ models:
|
|||
combination_of_columns:
|
||||
- year_month_created
|
||||
- year_month_checkout
|
||||
- id_user_host
|
||||
- id_user_partner
|
||||
columns:
|
||||
- name: id_user_partner
|
||||
data_type: text
|
||||
description: "unique id value for user partner"
|
||||
test:
|
||||
- not_null
|
||||
|
||||
- name: year_month_created
|
||||
data_type: text
|
||||
description: "first day of month of created date"
|
||||
description: "year and month of created date"
|
||||
test:
|
||||
- not_null
|
||||
|
||||
- name: year_month_checkout
|
||||
data_type: text
|
||||
description: "first day of month of check-out date"
|
||||
|
||||
- name: id_user_host
|
||||
data_type: text
|
||||
description: "unique id value for user host"
|
||||
description: "year and month of check-out date"
|
||||
test:
|
||||
- not_null
|
||||
|
||||
- name: bookings_per_month
|
||||
data_type: bigint
|
||||
|
|
@ -40,6 +46,12 @@ models:
|
|||
data_type: numeric
|
||||
description: "ratio of cancelled bookings over total bookings"
|
||||
|
||||
- name: is_cancellation_threshold_surpassed
|
||||
data_type: boolean
|
||||
description: "true if the cancellation ratio is higher than the set threshold"
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: sum_cancelled_fee
|
||||
data_type: numeric
|
||||
description: "sum of fees charged for cancelled bookings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue