3675 lines
No EOL
109 KiB
YAML
3675 lines
No EOL
109 KiB
YAML
version: 2
|
|
|
|
models:
|
|
- name: int_kpis__dimension_dates
|
|
description: |
|
|
This model provides the daily time dimensionality needed for KPIs.
|
|
It only considers dates up-to-yesterday.
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Specific date. It's the primary key of this model.
|
|
tests:
|
|
- unique
|
|
- not_null
|
|
|
|
- name: year
|
|
data_type: int
|
|
description: Year number of the given date.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: month
|
|
data_type: int
|
|
description: Month number of the given date.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: day
|
|
data_type: int
|
|
description: Day monthly number of the given date.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: first_day_month
|
|
data_type: date
|
|
description: |
|
|
First day of the month correspoding to the date field.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: last_day_month
|
|
data_type: date
|
|
description: |
|
|
Last day of the month correspoding to the date field.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_end_of_month
|
|
data_type: boolean
|
|
description: True if it's end of month, false otherwise.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_current_month
|
|
data_type: boolean
|
|
description: |
|
|
True if the date is within the current month, false otherwise.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: is_month_to_date
|
|
data_type: boolean
|
|
description: |
|
|
True if the date is within the scope of month-to-date, false otherwise.
|
|
The scope of month-to-date takes into account both 1) a date being in
|
|
the current month or 2) a date corresponding to the same month of the
|
|
previous year, which day number cannot be higher than yesterday's day
|
|
number.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: int_kpis__lifecycle_daily_accommodation
|
|
description: |
|
|
This model computes the daily lifecycle segment for each accommodation, also known as
|
|
listings.
|
|
The information regarding the booking-related time allows for the current status of any listing
|
|
regarding its activity. This information is encapsulated in the following columns:
|
|
|
|
accommodation_lifecycle_state: contains one of the following states
|
|
- 01-New: Listings that have been created in the current month, without bookings
|
|
- 02-Never Booked: Listings that have been created before the current month, without bookings.
|
|
- 03-First Time Booked: Listings that have been booked for the first time in the current month.
|
|
- 04-Active: Listings that have booking activity in the past 12 months (that are not FTB nor reactivated)
|
|
- 05-Churning: Listings that are becoming inactive because of lack of bookings in the past 12 months
|
|
- 06-Inactive: Listings that have not had a booking for more than 12 months.
|
|
- 07-Reactivated: Listings that have had a booking in the current month that were inactive or churning before.
|
|
- Finally, if none of the logic applies, which should not happen, null will be set and a dbt alert will raise.
|
|
|
|
Since the states of Active, First Time Booked and Reactivated indicate certain booking activity and are
|
|
mutually exclusive, the model also provides information of the recency of the bookings by the following
|
|
booleans:
|
|
- has_been_booked_within_current_month: If a listing has had a booking created in the current month
|
|
- has_been_booked_within_last_6_months: If a listing has had a booking created in the past 6 months
|
|
- has_been_booked_within_last_12_months: If a listing has had a booking created in the past 12 months
|
|
Note that if a listing has had a booking created in a given month, all 3 columns will be true. Similarly,
|
|
if the last booking created to a listing was 5 months ago, only the column has_been_booked_in_1_month
|
|
will be false; while the other 2 will be true.
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_accommodation
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date in which a Listing has a given lifecycle state.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_accommodation
|
|
data_type: bigint
|
|
description: Id of the accommodation or listing.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: creation_date_utc
|
|
data_type: date
|
|
description: Date of when the listing was created.
|
|
|
|
- name: first_time_booked_date_utc
|
|
data_type: date
|
|
description: |
|
|
Date of the first booking created for a given listing. Can be null if the listing
|
|
has never had a booking associated with it.
|
|
|
|
- name: last_time_booked_date_utc
|
|
data_type: date
|
|
description: |
|
|
Date of the last booking created for a given listing. Can be null if the listing
|
|
has never had a booking associated with it. Can be the same as first_time_booked_date_utc
|
|
if the listing only had 1 booking in its history.
|
|
|
|
- name: second_to_last_time_booked_date_utc
|
|
data_type: date
|
|
description: |
|
|
Date of the second-to-last booking created for a given listing, meaning the creation
|
|
date of the booking that precedes the last one. It's relevant for the reactivation computation
|
|
on the lifecycle. Can be null if the listing has never had a booking associated with it or if
|
|
the listing only had 1 booking in its history.
|
|
|
|
- name: accommodation_lifecycle_state
|
|
data_type: character varying
|
|
description: |
|
|
Contains the lifecycle state of a Listing. The accepted values are:
|
|
01-New, 02-Never Booked, 03-First Time Booked, 04-Active, 05-Churning, 06-Inactive,
|
|
07-Reactivated. Failing to implement the logic will result in alert.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- 01-New
|
|
- 02-Never Booked
|
|
- 03-First Time Booked
|
|
- 04-Active
|
|
- 05-Churning
|
|
- 06-Inactive
|
|
- 07-Reactivated
|
|
|
|
- name: has_been_booked_within_current_month
|
|
data_type: boolean
|
|
description: If the listing has had a booking created in the current month.
|
|
|
|
- name: has_been_booked_within_last_6_months
|
|
data_type: boolean
|
|
description: If the listing has had a booking created in the past 6 months.
|
|
|
|
- name: has_been_booked_within_last_12_months
|
|
data_type: boolean
|
|
description: If the listing has had a booking created in the past 12 months.
|
|
|
|
- name: int_kpis__dimension_daily_accommodation
|
|
description: |
|
|
This model computes the deal segmentation per number of
|
|
listings in a daily manner.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Specific date in which the segmentation applies.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- name: accommodations_booked_in_12_months
|
|
data_type: bigint
|
|
description:
|
|
Actual volume of listings that have been booked in the past 12 months
|
|
for a given deal and date.
|
|
|
|
- name: int_kpis__metric_daily_created_bookings
|
|
description: |
|
|
This model computes the Daily Created Bookings at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal,
|
|
- dash_source.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
- dash_source
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Bookings have been created.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dash_source
|
|
data_type: string
|
|
description: Dashboard source, either old or new.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "New Dash"
|
|
- "Old Dash"
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily bookings created in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_created_bookings
|
|
description: |
|
|
This model computes the Monthly Created Bookings at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- dash_source,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- dash_source
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dash_source
|
|
data_type: string
|
|
description: Dashboard source, either old or new.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "New Dash"
|
|
- "Old Dash"
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated bookings created in a given month
|
|
and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_created_bookings
|
|
description: |
|
|
This model computes the Month-To-Date Created Bookings at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- dash_source,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- dash_source
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dash_source
|
|
data_type: string
|
|
description: Dashboard source, either old or new.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "New Dash"
|
|
- "Old Dash"
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated bookings created in a given month up to the
|
|
given date and per specified dimension.
|
|
|
|
- name: int_kpis__aggregated_monthly_created_bookings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Created Bookings.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: created_bookings
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_dash_source
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_bookings
|
|
data_type: bigint
|
|
description: The monthly created bookings for a given date, dimension and value.
|
|
|
|
- name: int_kpis__aggregated_mtd_created_bookings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Created Bookings.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: created_bookings
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_dash_source
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_bookings
|
|
data_type: bigint
|
|
description: The month-to-date created bookings for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_created_guest_journeys
|
|
description: |
|
|
This model computes the Daily Created Guest Journeys at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Guest Journeys have been created.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys created in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_created_guest_journeys
|
|
description: |
|
|
This model computes the Monthly Created Guest Journeys at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated guest journeys created in a given month
|
|
and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_created_guest_journeys
|
|
description: |
|
|
This model computes the Month-To-Date Created Guest Journeys at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated guest journeys created in a given month up to the
|
|
given date and per specified dimension.
|
|
|
|
- name: int_kpis__aggregated_monthly_created_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Created Guest Journeys.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: created_guest_journeys
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: bigint
|
|
description: The monthtly created guest journeys for a given date, dimension and value.
|
|
|
|
- name: int_kpis__aggregated_mtd_created_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Created Guest Journeys.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: created_guest_journeys
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: bigint
|
|
description: The month-to-date created guest journeys for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_started_guest_journeys
|
|
description: |
|
|
This model computes the Daily Started Guest Journeys at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Guest Journeys have been started.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys started in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_started_guest_journeys
|
|
description: |
|
|
This model computes the Monthly Started Guest Journeys at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated guest journeys started in a given month
|
|
and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_started_guest_journeys
|
|
description: |
|
|
This model computes the Month-To-Date Started Guest Journeys at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated guest journeys started in a given month up to the
|
|
given date and per specified dimension.
|
|
|
|
- name: int_kpis__aggregated_monthly_started_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Started Guest Journeys.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: started_guest_journeys
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: bigint
|
|
description: The monthly started guest journeys for a given date, dimension and value.
|
|
|
|
- name: int_kpis__aggregated_mtd_started_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Started Guest Journeys.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: started_guest_journeys
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: bigint
|
|
description: The month-to-date started guest journeys for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_completed_guest_journeys
|
|
description: |
|
|
This model computes the Daily Completed Guest Journeys at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Guest Journeys have been completed.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys completed in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_completed_guest_journeys
|
|
description: |
|
|
This model computes the Monthly Completed Guest Journeys at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated guest journeys completed in a given month
|
|
and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_completed_guest_journeys
|
|
description: |
|
|
This model computes the Month-To-Date Completed Guest Journeys at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated guest journeys completed in a given month up to the
|
|
given date and per specified dimension.
|
|
|
|
- name: int_kpis__aggregated_monthly_completed_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Completed Guest Journeys.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: completed_guest_journeys
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: bigint
|
|
description: The monthly completed guest journeys for a given date, dimension and value.
|
|
|
|
- name: int_kpis__aggregated_mtd_completed_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Completed Guest Journeys.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: completed_guest_journeys
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: bigint
|
|
description: The month-to-date completed guest journeys for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_guest_journeys_with_payment
|
|
description: |
|
|
This model computes the Daily Guest Journeys with Payment at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Guest Journeys have been completed.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: guest_journeys_with_payment
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys completed in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_guest_journeys_with_payment
|
|
description: |
|
|
This model computes the Monthly Guest Journeys with Payment at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: guest_journeys_with_payment
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated guest journeys completed in a given month
|
|
and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_guest_journeys_with_payment
|
|
description: |
|
|
This model computes the Month-To-Date Guest Journeys with Payment at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: guest_journeys_with_payment
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated guest journeys completed in a given month up to the
|
|
given date and per specified dimension.
|
|
|
|
- name: int_kpis__aggregated_monthly_guest_journeys_with_payment
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Guest Journeys with Payment.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: guest_journeys_with_payment
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: guest_journeys_with_payment
|
|
data_type: bigint
|
|
description: The monthly guest journeys with payment for a given date, dimension and value.
|
|
|
|
- name: int_kpis__aggregated_mtd_guest_journeys_with_payment
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Guest Journeys with Payment.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: guest_journeys_with_payment
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: guest_journeys_with_payment
|
|
data_type: bigint
|
|
description: The month-to-date guest journeys with payment for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_guest_payments
|
|
description: |
|
|
This model computes the Daily Guest Payments at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Guest Journeys have been completed.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: deposit_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of deposit fees paid by guests, without taxes, in GBP
|
|
in a given date and per specified dimension.
|
|
|
|
- name: waiver_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of waiver payments paid by guests, without taxes, in GBP
|
|
in a given date and per specified dimension.
|
|
|
|
- name: checkin_cover_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of checkin cover fees paid by guests, without taxes, in GBP
|
|
in a given date and per specified dimension.
|
|
|
|
- name: total_guest_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of total payments paid by guests, without taxes, in GBP
|
|
in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_guest_payments
|
|
description: |
|
|
This model computes the Monthly Guest Payments at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: deposit_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated deposit fees paid by guests, without taxes,
|
|
in GBP in a given month and per specified dimension.
|
|
|
|
- name: waiver_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated waiver payments paid by guests, without taxes,
|
|
in GBP in a given month and per specified dimension.
|
|
|
|
- name: checkin_cover_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated checkin cover fees by guests, without taxes,
|
|
in GBP in a given month and per specified dimension.
|
|
|
|
- name: total_guest_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated total payments paid by guests, without taxes,
|
|
in GBP in a given month and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_guest_payments
|
|
description: |
|
|
This model computes the Month-To-Date Guest Payments at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: deposit_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated deposit fees paid by guests, without taxes,
|
|
in GBP in a given month up to the given date and per specified dimension.
|
|
|
|
- name: waiver_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated waiver payments paid by guests, without taxes,
|
|
in GBP in a given month up to the given date and per specified dimension.
|
|
|
|
- name: checkin_cover_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated checkin cover fees by guests, without taxes,
|
|
in GBP in a given month up to the given date and per specified dimension.
|
|
|
|
- name: total_guest_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
Sum of accumulated total payments paid by guests, without taxes,
|
|
in GBP in a given month up to the given date and per specified dimension.
|
|
|
|
- name: int_kpis__aggregated_monthly_guest_payments
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Guest Payments.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: deposit_fees_in_gbp
|
|
- assert_dimension_completeness:
|
|
metric_column_name: waiver_payments_in_gbp
|
|
- assert_dimension_completeness:
|
|
metric_column_name: checkin_cover_fees_in_gbp
|
|
- assert_dimension_completeness:
|
|
metric_column_name: total_guest_payments_in_gbp
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: deposit_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly deposit fees paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: waiver_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly waiver payments paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: checkin_cover_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly checkin cover fees paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: total_guest_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The monthly total payments paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: int_kpis__aggregated_mtd_guest_payments
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Guest Payments.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: deposit_fees_in_gbp
|
|
- assert_dimension_completeness:
|
|
metric_column_name: waiver_payments_in_gbp
|
|
- assert_dimension_completeness:
|
|
metric_column_name: checkin_cover_fees_in_gbp
|
|
- assert_dimension_completeness:
|
|
metric_column_name: total_guest_payments_in_gbp
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: deposit_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date deposit fees paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: waiver_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date waiver payments paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: checkin_cover_fees_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date checkin cover fees paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: total_guest_payments_in_gbp
|
|
data_type: decimal
|
|
description: |
|
|
The month-to-date total payments paid by guests, without taxes, in GBP
|
|
for a given range date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_check_out_bookings
|
|
description: |
|
|
This model computes the Daily Check-out Bookings at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Bookings have been checked-out.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: check_out_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily bookings checked-out in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_check_out_bookings
|
|
description: |
|
|
This model computes the Monthly Check-out Bookings at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: check_out_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated bookings checked-out in a given month
|
|
and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_check_out_bookings
|
|
description: |
|
|
This model computes the Month-To-Date Check-out Bookings at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: check_out_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated bookings checked-out in a given month up to the
|
|
given date and per specified dimension.
|
|
|
|
- name: int_kpis__aggregated_monthly_check_out_bookings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Check-out Bookings.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: check_out_bookings
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: check_out_bookings
|
|
data_type: bigint
|
|
description: The monthly checked-out bookings for a given date, dimension and value.
|
|
|
|
- name: int_kpis__aggregated_mtd_check_out_bookings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Check-out Bookings.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: check_out_bookings
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: check_out_bookings
|
|
data_type: bigint
|
|
description: The month-to-date checked-out bookings for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_billable_bookings
|
|
description: |
|
|
This model computes the Daily Billable Bookings at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Bookings have been billable.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: billable_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily bookings billable in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_billable_bookings
|
|
description: |
|
|
This model computes the Monthly Billable Bookings at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: billable_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated bookings billable in a given month
|
|
and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_billable_bookings
|
|
description: |
|
|
This model computes the Month-To-Date Billable Bookings at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: billable_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated bookings billable in a given month up to the
|
|
given date and per specified dimension.
|
|
|
|
- name: int_kpis__aggregated_monthly_billable_bookings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Billable Bookings.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: billable_bookings
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: billable_bookings
|
|
data_type: bigint
|
|
description: The monthly billable bookings for a given date, dimension and value.
|
|
|
|
- name: int_kpis__aggregated_mtd_billable_bookings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Billable Bookings.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: billable_bookings
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: billable_bookings
|
|
data_type: bigint
|
|
description: The month-to-date billable bookings for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_cancelled_bookings
|
|
description: |
|
|
This model computes the Daily Cancelled Bookings at the deepest granularity.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of when Bookings have been cancelled.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: cancelled_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily bookings cancelled in a given date and per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_cancelled_bookings
|
|
description: |
|
|
This model computes the Monthly Cancelled Bookings at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: cancelled_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated bookings cancelled in a given month
|
|
and per specified dimension.
|
|
|
|
- name: int_kpis__metric_mtd_cancelled_bookings
|
|
description: |
|
|
This model computes the Month-To-Date Cancelled Bookings at the
|
|
deepest granularity.
|
|
Be aware that any dimension that can change over the monthly period,
|
|
such as daily segmentations, are included in the primary key of the
|
|
model.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: cancelled_bookings
|
|
data_type: bigint
|
|
description: |
|
|
Count of accumulated bookings cancelled in a given month up to the
|
|
given date and per specified dimension.
|
|
|
|
- name: int_kpis__aggregated_monthly_cancelled_bookings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Monthly Cancelled Bookings.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: cancelled_bookings
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: cancelled_bookings
|
|
data_type: bigint
|
|
description: The monthly cancelled bookings for a given date, dimension and value.
|
|
|
|
- name: int_kpis__aggregated_mtd_cancelled_bookings
|
|
description: |
|
|
This model computes the dimension aggregation for
|
|
Month-To-Date Cancelled Bookings.
|
|
|
|
The primary key of this model is end_date, dimension
|
|
and dimension_value.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: string
|
|
description: The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: cancelled_bookings
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_number_of_listings
|
|
- by_billing_country
|
|
- by_deal
|
|
|
|
- name: dimension_value
|
|
data_type: string
|
|
description: The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: cancelled_bookings
|
|
data_type: bigint
|
|
description: The month-to-date cancelled bookings for a given date, dimension and value.
|
|
|
|
- name: int_kpis__metric_daily_check_in_attributed_guest_journeys
|
|
description: |
|
|
This model computes Guest Journey metrics at the deepest granularity
|
|
level for the Guest Products KPIs.
|
|
This model uses the Check-In date of the bookings for the date attribute.
|
|
|
|
The unique key corresponds to the deepest granularity of the model,
|
|
in this case:
|
|
- date,
|
|
- id_deal,
|
|
- has_payment,
|
|
- has_id_check.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- date
|
|
- id_deal
|
|
- has_payment
|
|
- has_id_check
|
|
|
|
columns:
|
|
- name: date
|
|
data_type: date
|
|
description: Date of Check-In of the bookings for the guest journeys.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: string
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: has_payment
|
|
data_type: string
|
|
description: Has there been any guest payments on the guest journey.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Payment
|
|
- With Payment
|
|
|
|
- name: has_id_check
|
|
data_type: string
|
|
description: Does the verification in the guest journey
|
|
includes Government Id Check for the bookings.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Id Check
|
|
- With Id Check
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: string
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: string
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys_not_cancelled
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys created, excluding cancelled bookings,
|
|
in a given date and per specified dimension.
|
|
|
|
- name: started_guest_journeys_not_cancelled
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys started, excluding cancelled bookings,
|
|
in a given date and per specified dimension.
|
|
|
|
- name: completed_guest_journeys_not_cancelled
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys completed, excluding cancelled bookings,
|
|
in a given date and per specified dimension.
|
|
|
|
- name: created_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys created in a given date and
|
|
per specified dimension.
|
|
|
|
- name: started_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys started in a given date and
|
|
per specified dimension.
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: bigint
|
|
description: |
|
|
Count of daily guest journeys completed in a given date and
|
|
per specified dimension.
|
|
|
|
- name: int_kpis__metric_monthly_check_in_attributed_guest_journeys
|
|
description: |
|
|
This model computes the Monthly metrics associated with Guest Journeys
|
|
attributed to Check-In date at the deepest granularity.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- has_payment,
|
|
- has_id_check,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- has_payment
|
|
- has_id_check
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: character varying
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: has_payment
|
|
data_type: string
|
|
description: Has there been any guest payments on the guest journey.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Payment
|
|
- With Payment
|
|
|
|
- name: has_id_check
|
|
data_type: string
|
|
description: Does the verification in the guest journey
|
|
includes Government Id Check for the bookings.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Id Check
|
|
- With Id Check
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: text
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: character varying
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Count of daily guest journeys created, excluding cancelled bookings,
|
|
in a given date and per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Count of daily guest journeys started, excluding cancelled bookings,
|
|
in a given date and per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Count of daily guest journeys completed, excluding cancelled bookings,
|
|
in a given date and per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Count of daily guest journeys created in a given date and
|
|
per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Count of daily guest journeys started in a given date and
|
|
per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Count of daily guest journeys completed in a given date and
|
|
per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: int_kpis__agg_monthly_check_in_attributed_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for Monthly metrics associated
|
|
to Guest Journeys attributed to Check-In date.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: text
|
|
description: |
|
|
The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: created_guest_journeys_not_cancelled
|
|
- assert_dimension_completeness:
|
|
metric_column_name: started_guest_journeys_not_cancelled
|
|
- assert_dimension_completeness:
|
|
metric_column_name: completed_guest_journeys_not_cancelled
|
|
- assert_dimension_completeness:
|
|
metric_column_name: created_guest_journeys
|
|
- assert_dimension_completeness:
|
|
metric_column_name: started_guest_journeys
|
|
- assert_dimension_completeness:
|
|
metric_column_name: completed_guest_journeys
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_deal
|
|
- by_has_payment
|
|
- by_has_id_check
|
|
- by_billing_country
|
|
- by_number_of_listings
|
|
|
|
- name: dimension_value
|
|
data_type: text
|
|
description: |
|
|
The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys created, excluding
|
|
cancelled bookings, for a given date, dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys started, excluding
|
|
cancelled bookings, for a given date, dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys completed, excluding
|
|
cancelled bookings, for a given date, dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys created for a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys started for a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys completed for a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: int_kpis__metric_mtd_check_in_attributed_guest_journeys
|
|
description: |
|
|
This model computes the Month-To-Date metrics associated with Guest Journeys
|
|
attributed to Check-In date at the deepest granularity.
|
|
|
|
The unique key corresponds to:
|
|
- end_date,
|
|
- id_deal,
|
|
- has_payment,
|
|
- has_id_check,
|
|
- active_accommodations_per_deal_segmentation.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- id_deal
|
|
- has_payment
|
|
- has_id_check
|
|
- active_accommodations_per_deal_segmentation
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: id_deal
|
|
data_type: character varying
|
|
description: Unique identifier of an account.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: has_payment
|
|
data_type: string
|
|
description: Has there been any guest payments on the guest journey.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Payment
|
|
- With Payment
|
|
|
|
- name: has_id_check
|
|
data_type: string
|
|
description: Does the verification in the guest journey
|
|
includes Government Id Check for the bookings.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- W/O Id Check
|
|
- With Id Check
|
|
|
|
- name: active_accommodations_per_deal_segmentation
|
|
data_type: text
|
|
description: |
|
|
Segment value based on the number of listings booked in 12 months
|
|
for a given deal and date.
|
|
tests:
|
|
- not_null
|
|
- accepted_values:
|
|
values:
|
|
- "0"
|
|
- "01-05"
|
|
- "06-20"
|
|
- "21-60"
|
|
- "61+"
|
|
- "UNSET"
|
|
|
|
- name: main_billing_country_iso_3_per_deal
|
|
data_type: character varying
|
|
description: |
|
|
Main billing country of the host aggregated at Deal level.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Count of daily guest journeys created, excluding cancelled bookings,
|
|
in a given date and per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Count of daily guest journeys started, excluding cancelled bookings,
|
|
in a given date and per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Count of daily guest journeys completed, excluding cancelled bookings,
|
|
in a given date and per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Count of daily guest journeys created in a given date and
|
|
per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Count of daily guest journeys started in a given date and
|
|
per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Count of daily guest journeys completed in a given date and
|
|
per specified dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: int_kpis__agg_mtd_check_in_attributed_guest_journeys
|
|
description: |
|
|
This model computes the dimension aggregation for Month-To-Date metrics associated
|
|
to Guest Journeys attributed to Check-In date.
|
|
|
|
tests:
|
|
- dbt_utils.unique_combination_of_columns:
|
|
combination_of_columns:
|
|
- end_date
|
|
- dimension
|
|
- dimension_value
|
|
|
|
columns:
|
|
- name: start_date
|
|
data_type: date
|
|
description: |
|
|
The start date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: end_date
|
|
data_type: date
|
|
description: |
|
|
The end date of the time range considered for the metrics in this record.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: dimension
|
|
data_type: text
|
|
description: |
|
|
The dimension or granularity of the metrics.
|
|
tests:
|
|
- assert_dimension_completeness:
|
|
metric_column_name: created_guest_journeys_not_cancelled
|
|
- assert_dimension_completeness:
|
|
metric_column_name: started_guest_journeys_not_cancelled
|
|
- assert_dimension_completeness:
|
|
metric_column_name: completed_guest_journeys_not_cancelled
|
|
- assert_dimension_completeness:
|
|
metric_column_name: created_guest_journeys
|
|
- assert_dimension_completeness:
|
|
metric_column_name: started_guest_journeys
|
|
- assert_dimension_completeness:
|
|
metric_column_name: completed_guest_journeys
|
|
- accepted_values:
|
|
values:
|
|
- global
|
|
- by_deal
|
|
- by_has_payment
|
|
- by_has_id_check
|
|
- by_billing_country
|
|
- by_number_of_listings
|
|
|
|
- name: dimension_value
|
|
data_type: text
|
|
description: |
|
|
The value or segment available for the selected dimension.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys created, excluding
|
|
cancelled bookings, for a given date, dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys started, excluding
|
|
cancelled bookings, for a given date, dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys_not_cancelled
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys completed, excluding
|
|
cancelled bookings, for a given date, dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: created_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys created for a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: started_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys started for a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- not_null
|
|
|
|
- name: completed_guest_journeys
|
|
data_type: numeric
|
|
description: |
|
|
Monthly aggregated count of guest journeys completed for a given date,
|
|
dimension, and value.
|
|
tests:
|
|
- not_null |