duplicated payments temporal fix
This commit is contained in:
parent
61c1509337
commit
4cda82fe48
3 changed files with 16 additions and 26 deletions
|
|
@ -1886,6 +1886,10 @@ models:
|
||||||
This table is used to track the verification requests that are related to a
|
This table is used to track the verification requests that are related to a
|
||||||
specific guest product.
|
specific guest product.
|
||||||
|
|
||||||
|
Deprecating in the future the temporary fix due to duplicated payments
|
||||||
|
where we filter `id_verification_request_to_guest_product <> 773`
|
||||||
|
deprecation_date: 2025-07-31
|
||||||
|
|
||||||
columns:
|
columns:
|
||||||
- name: id_verification_request_to_guest_product
|
- name: id_verification_request_to_guest_product
|
||||||
data_type: bigint
|
data_type: bigint
|
||||||
|
|
@ -1961,6 +1965,10 @@ models:
|
||||||
This table is used to track the verification requests from a guest product
|
This table is used to track the verification requests from a guest product
|
||||||
to a payment.
|
to a payment.
|
||||||
|
|
||||||
|
Deprecating in the future the temporary fix due to duplicated payments
|
||||||
|
where we filter `id_verification_request_guest_product_to_payment <> 103`
|
||||||
|
deprecation_date: 2025-07-31
|
||||||
|
|
||||||
columns:
|
columns:
|
||||||
- name: id_verification_request_guest_product_to_payment
|
- name: id_verification_request_guest_product_to_payment
|
||||||
data_type: bigint
|
data_type: bigint
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,3 @@
|
||||||
{{
|
|
||||||
config(
|
|
||||||
materialized="incremental",
|
|
||||||
unique_key="id_verification_request_to_guest_product",
|
|
||||||
)
|
|
||||||
}}
|
|
||||||
|
|
||||||
|
|
||||||
with
|
with
|
||||||
raw_verification_request_guest_product_to_payment as (
|
raw_verification_request_guest_product_to_payment as (
|
||||||
select * from {{ source("core", "VerificationRequestGuestProductToPayment") }}
|
select * from {{ source("core", "VerificationRequestGuestProductToPayment") }}
|
||||||
|
|
@ -28,8 +20,7 @@ with
|
||||||
)
|
)
|
||||||
select *
|
select *
|
||||||
from stg_core__verification_request_guest_product_to_payment
|
from stg_core__verification_request_guest_product_to_payment
|
||||||
{% if is_incremental() %}
|
where
|
||||||
where
|
current_date < date('2025-07-27') -- Temporary fix due to duplicated payments
|
||||||
updated_at_utc
|
and id_verification_request_guest_product_to_payment <> 103
|
||||||
>= ((select max(updated_at_utc) from {{ this }}) - interval '7 days')
|
or current_date >= date('2025-07-27')
|
||||||
{% endif %}
|
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,3 @@
|
||||||
{{
|
|
||||||
config(
|
|
||||||
materialized="incremental",
|
|
||||||
unique_key="id_verification_request_to_guest_product",
|
|
||||||
)
|
|
||||||
}}
|
|
||||||
|
|
||||||
|
|
||||||
with
|
with
|
||||||
raw_verification_request_to_guest_product as (
|
raw_verification_request_to_guest_product as (
|
||||||
select * from {{ source("core", "VerificationRequestToGuestProduct") }}
|
select * from {{ source("core", "VerificationRequestToGuestProduct") }}
|
||||||
|
|
@ -30,8 +22,7 @@ with
|
||||||
)
|
)
|
||||||
select *
|
select *
|
||||||
from stg_core__verification_request_to_guest_product
|
from stg_core__verification_request_to_guest_product
|
||||||
{% if is_incremental() %}
|
where
|
||||||
where
|
current_date < date('2025-07-27') -- Temporary fix due to duplicated payments
|
||||||
updated_at_utc
|
and id_verification_request_to_guest_product <> 773
|
||||||
>= ((select max(updated_at_utc) from {{ this }}) - interval '7 days')
|
or current_date >= date('2025-07-27')
|
||||||
{% endif %}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue