changed name
This commit is contained in:
parent
0fd8c21e38
commit
aaa0b1a5dd
6 changed files with 42 additions and 42 deletions
|
|
@ -192,12 +192,12 @@ select
|
|||
(i.calculated_payout_amount_in_usd * cer.rate)::decimal(
|
||||
19, 4
|
||||
) as calculated_payout_amount_in_gbp,
|
||||
i.calculated_guest_charge_amount_in_txn_currency,
|
||||
i.calculated_guest_charge_currency,
|
||||
i.calculated_guest_charge_amount_in_usd,
|
||||
(i.calculated_guest_charge_amount_in_usd * cer.rate)::decimal(
|
||||
i.submitted_guest_charge_amount_in_txn_currency,
|
||||
i.submitted_guest_charge_currency,
|
||||
i.submitted_guest_charge_amount_in_usd,
|
||||
(i.submitted_guest_charge_amount_in_usd * cer.rate)::decimal(
|
||||
19, 4
|
||||
) as calculated_guest_charge_amount_in_gbp,
|
||||
) as submitted_guest_charge_amount_in_gbp,
|
||||
|
||||
-- Host Details
|
||||
i.id_user_host,
|
||||
|
|
|
|||
|
|
@ -211,32 +211,32 @@ models:
|
|||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: calculated_guest_charge_amount_in_txn_currency
|
||||
data_type: text
|
||||
description: "Calculated guest charge amount in local currency."
|
||||
- name: submitted_guest_charge_amount_in_txn_currency
|
||||
data_type: numeric
|
||||
description: "Submitted guest charge amount in local currency."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: calculated_guest_charge_currency
|
||||
- name: submitted_guest_charge_currency
|
||||
data_type: text
|
||||
description: "Currency of the calculated guest charge amount."
|
||||
description: "Currency of the submitted guest charge amount."
|
||||
data_tests:
|
||||
- not_null:
|
||||
where: "calculated_guest_charge_amount_in_txn_currency > 0"
|
||||
where: "submitted_guest_charge_amount_in_txn_currency > 0"
|
||||
|
||||
- name: calculated_guest_charge_amount_in_usd
|
||||
data_type: text
|
||||
description: "Calculated guest charge amount in USD."
|
||||
- name: submitted_guest_charge_amount_in_usd
|
||||
data_type: numeric
|
||||
description: "Submitted guest charge amount in USD."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
strictly: false
|
||||
|
||||
- name: calculated_guest_charge_amount_in_gbp
|
||||
- name: submitted_guest_charge_amount_in_gbp
|
||||
data_type: text
|
||||
description: "Calculated guest charge amount in GBP."
|
||||
description: "Submitted guest charge amount in GBP."
|
||||
data_tests:
|
||||
- dbt_expectations.expect_column_values_to_be_between:
|
||||
min_value: 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue