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:
Joaquin Ossa 2024-08-29 14:25:00 +02:00
parent ad2eb2544c
commit 6adc424963
6 changed files with 96 additions and 48 deletions

View file

@ -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