push filter down one model

This commit is contained in:
Pablo Martin 2024-10-04 17:44:26 +02:00
parent 30c73b1ab9
commit 761cf409c6
2 changed files with 2 additions and 4 deletions

View file

@ -63,7 +63,6 @@ with
on cer.from_currency = eu.currency
and cer.rate_date_utc = v.checkout_date_utc
and cer.to_currency = 'GBP'
where version = 'V2'
),
monthly_cancellation_threshold as (
select

View file

@ -10,9 +10,7 @@ select
id_user_partner,
id_accommodation,
version,
case
when version = 'V1' then 'Guesty' when version = 'V2' then 'Edeposit' else null
end as verification_source,
case when version = 'V2' then 'Edeposit' else null end as verification_source,
verification_status,
nightly_fee_local,
cast(checkout_at_utc as date) - cast(checkin_at_utc as date) as number_nights,
@ -48,3 +46,4 @@ select
created_at_utc,
created_date_utc
from stg_edeposit__verifications
where version = 'V2'