Merge branch 'master' of ssh.dev.azure.com:v3/guardhog/Data/data-dwh-dbt-project
This commit is contained in:
commit
5fd69b7101
24 changed files with 1208 additions and 93 deletions
|
|
@ -335,3 +335,19 @@ exposures:
|
|||
owner:
|
||||
name: Joaquin Ossa
|
||||
email: joaquin.ossa@superhog.com
|
||||
|
||||
- name: fx_rates_integration_with_billing_db
|
||||
label: FX Rates integration with Billing DB
|
||||
type: application
|
||||
maturity: high
|
||||
url: https://www.notion.so/knowyourguest-superhog/Currency-Rates-for-apps-integration-1600446ff9c9804faa66f982f294e6e8?pvs=4
|
||||
description: |
|
||||
We currently push our currency rates data into the BillingDB with Airbyte.
|
||||
Application runtimes request currency rates data from there.
|
||||
|
||||
depends_on:
|
||||
- ref('daily_currency_exchange_rates')
|
||||
|
||||
owner:
|
||||
name: Pablo Martin
|
||||
email: pablo.martin@superhog.com
|
||||
|
|
|
|||
|
|
@ -50,30 +50,33 @@ models:
|
|||
- "DAMAGE WAIVER"
|
||||
- "PET PROTECTION"
|
||||
|
||||
- name: protection_starting_level
|
||||
- name: protection_starting_amount_in_local_currency
|
||||
data_type: numeric
|
||||
description: Field used for protection type "STANDALONE PROTECTION" to
|
||||
indicate the starting level of protection.
|
||||
In local currency.
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
max_value: 100000
|
||||
strictly: true
|
||||
|
||||
- name: protection_basic_amount
|
||||
- name: protection_basic_amount_in_local_currency
|
||||
data_type: numeric
|
||||
description: Field used for protection type "SCREEN & PROTECT",
|
||||
"BASIC PROTECTION" or "DAMAGE WAIVER" to show the basic amount of protection.
|
||||
In local currency.
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
max_value: 100000
|
||||
strictly: true
|
||||
|
||||
- name: protection_extended_amount
|
||||
- name: protection_extended_amount_in_local_currency
|
||||
data_type: numeric
|
||||
description: Field used for protection type "SCREEN & PROTECT",
|
||||
or "STANDALONE PROTECTION" to show the basic amount of protection.
|
||||
In local currency.
|
||||
tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
|
|
@ -225,23 +228,23 @@ models:
|
|||
tests:
|
||||
- not_null
|
||||
|
||||
- name: cosmos_creation_at_utc
|
||||
- name: creation_at_utc
|
||||
data_type: timestamp without time zone
|
||||
description: |
|
||||
Timestamp of when the verification request was created in Cosmos DB.
|
||||
Timestamp of when the reservation was created.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: cosmos_creation_date_utc
|
||||
- name: creation_date_utc
|
||||
data_type: date
|
||||
description: |
|
||||
Date of when the reservation was created.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: cosmos_created_date_utc
|
||||
data_type: date
|
||||
description: |
|
||||
Date of when the verification request was created in Cosmos DB.
|
||||
tests:
|
||||
- not_null
|
||||
|
||||
- name: created_date_utc
|
||||
data_type: date
|
||||
description: |
|
||||
Date when the reservation was created.
|
||||
tests:
|
||||
- not_null
|
||||
|
|
|
|||
|
|
@ -3,17 +3,18 @@ with
|
|||
select * from {{ ref("int_screen_and_protect__verification_requests") }}
|
||||
)
|
||||
select
|
||||
-- note that these ids are not the same as the ones found in Core DWH
|
||||
-- they are completely unrelated
|
||||
id_verification as id_verification,
|
||||
id_booking as id_booking,
|
||||
id_user_partner as id_user_partner,
|
||||
id_accommodation as id_accommodation,
|
||||
is_protected as is_protected,
|
||||
protection_type as protection_type,
|
||||
protection_starting_level as protection_starting_level,
|
||||
protection_basic_amount as protection_basic_amount,
|
||||
protection_extended_amount as protection_extended_amount,
|
||||
protection_starting_amount_in_local_currency
|
||||
as protection_starting_amount_in_local_currency,
|
||||
protection_basic_amount_in_local_currency
|
||||
as protection_basic_amount_in_local_currency,
|
||||
protection_extended_amount_in_local_currency
|
||||
as protection_extended_amount_in_local_currency,
|
||||
pet_protection as pet_protection,
|
||||
verification_status as verification_status,
|
||||
verification_status_reason as verification_status_reason,
|
||||
|
|
@ -45,7 +46,7 @@ select
|
|||
status_updated_date_utc as status_updated_date_utc,
|
||||
updated_at_utc as updated_at_utc,
|
||||
updated_date_utc as updated_date_utc,
|
||||
cosmos_creation_at_utc as cosmos_creation_at_utc,
|
||||
cosmos_creation_date_utc as cosmos_creation_date_utc,
|
||||
created_date_utc as created_date_utc
|
||||
creation_at_utc as creation_at_utc,
|
||||
creation_date_utc as creation_date_utc,
|
||||
cosmos_created_date_utc as cosmos_created_date_utc
|
||||
from int_screen_and_protect__verification_requests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue