change from model var to project var

This commit is contained in:
Pablo Martin 2025-05-27 14:49:29 +02:00
parent 06a4f679ea
commit 6a9787a85b
2 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,4 @@
{% set check_in_cover_as_id_verification_payment = "5" %}
{% set cut_off_date_check_in_cover_as_id_verification_payment = "'2025-06-08'" %}
{{ config(materialized="table") }}
with
@ -8,7 +7,7 @@ with
from {{ ref("stg_core__verification_to_payment") }}
where
created_date_utc
<= date({{ cut_off_date_check_in_cover_as_id_verification_payment }})
<= date({{ var("guest_products_feature_flag_activation_timestamp") }})
and id_verification_payment_type
= {{ check_in_cover_as_id_verification_payment }}
),
@ -20,7 +19,7 @@ with
from {{ ref("stg_core__verification") }}
where
created_date_utc
<= date({{ cut_off_date_check_in_cover_as_id_verification_payment }})
<= date({{ var("guest_products_feature_flag_activation_timestamp") }})
),
stg_core__verification_request as (
select * from {{ ref("stg_core__verification_request") }}