Merged PR 2724: Removing coalesce from gbp conversion in int_core__host_booking_fees
# Description Removing coalesce from gbp conversion in `int_core__host_booking_fees` # Checklist - [X] The edited models and dependants run properly with production data. - [X] The edited models are sufficiently documented. - [X] The edited models contain PK tests, and I've ran and passed them. - [X] I have checked for DRY opportunities with other models and docs. **Message sent in data team channel** - [X] I've picked the right materialization for the affected models. # Other - [ ] Check if a full-refresh is required after this PR is merged.
This commit is contained in:
parent
4cfc0dcd45
commit
1b30fbbca9
1 changed files with 1 additions and 3 deletions
|
|
@ -18,9 +18,7 @@ select
|
||||||
coalesce(db.is_duplicate_booking, false) as is_duplicate_booking,
|
coalesce(db.is_duplicate_booking, false) as is_duplicate_booking,
|
||||||
bce.booking_fee_local,
|
bce.booking_fee_local,
|
||||||
uu.account_currency_iso4217,
|
uu.account_currency_iso4217,
|
||||||
coalesce(
|
ser.rate * bce.booking_fee_local as booking_fee_in_gbp,
|
||||||
ser.rate * bce.booking_fee_local, bce.booking_fee_local
|
|
||||||
) as booking_fee_in_gbp,
|
|
||||||
bce.booking_fee_charge_at_utc,
|
bce.booking_fee_charge_at_utc,
|
||||||
bce.booking_fee_charge_date_utc
|
bce.booking_fee_charge_date_utc
|
||||||
from stg_core__booking b
|
from stg_core__booking b
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue