change from model var to project var
This commit is contained in:
parent
06a4f679ea
commit
6a9787a85b
2 changed files with 6 additions and 3 deletions
|
|
@ -68,6 +68,10 @@ vars:
|
||||||
# New Dash First Invoicing Date. This is the first date considered for New Dash invoicing.
|
# New Dash First Invoicing Date. This is the first date considered for New Dash invoicing.
|
||||||
"new_dash_first_invoicing_date": "'2024-12-31'"
|
"new_dash_first_invoicing_date": "'2024-12-31'"
|
||||||
|
|
||||||
|
# The timestamp of when the Guest Squad activated the Feature Flag that
|
||||||
|
# activated the big bang refactor of the Guest Products logic.
|
||||||
|
"guest_products_feature_flag_activation_timestamp": "'2025-06-08T00:00:00Z'"
|
||||||
|
|
||||||
# A distant future date to use as a default when cutoff values are missing.
|
# A distant future date to use as a default when cutoff values are missing.
|
||||||
"end_of_time": "'2050-12-31'"
|
"end_of_time": "'2050-12-31'"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
{% set check_in_cover_as_id_verification_payment = "5" %}
|
{% 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") }}
|
{{ config(materialized="table") }}
|
||||||
with
|
with
|
||||||
|
|
@ -8,7 +7,7 @@ with
|
||||||
from {{ ref("stg_core__verification_to_payment") }}
|
from {{ ref("stg_core__verification_to_payment") }}
|
||||||
where
|
where
|
||||||
created_date_utc
|
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
|
and id_verification_payment_type
|
||||||
= {{ check_in_cover_as_id_verification_payment }}
|
= {{ check_in_cover_as_id_verification_payment }}
|
||||||
),
|
),
|
||||||
|
|
@ -20,7 +19,7 @@ with
|
||||||
from {{ ref("stg_core__verification") }}
|
from {{ ref("stg_core__verification") }}
|
||||||
where
|
where
|
||||||
created_date_utc
|
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 (
|
stg_core__verification_request as (
|
||||||
select * from {{ ref("stg_core__verification_request") }}
|
select * from {{ ref("stg_core__verification_request") }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue