Added timestamp to a/b test model

This commit is contained in:
Joaquin Ossa 2025-02-25 14:48:37 +01:00
parent a6671ee4d0
commit 4a6158df28
2 changed files with 13 additions and 1 deletions

View file

@ -24,6 +24,7 @@ with
id_verification_request, id_verification_request,
ab_test_name, ab_test_name,
variation, variation,
first_appearance_at_utc,
date(first_appearance_at_utc) as first_appearance_date_utc date(first_appearance_at_utc) as first_appearance_date_utc
from int_core__ab_test_tracking_guest_journey from int_core__ab_test_tracking_guest_journey
), ),
@ -32,6 +33,7 @@ with
abt.ab_test_name, abt.ab_test_name,
abt.variation, abt.variation,
abt.id_verification_request, abt.id_verification_request,
abt.first_appearance_at_utc,
abt.first_appearance_date_utc, abt.first_appearance_date_utc,
vr.verification_estimated_started_date_utc as verification_started_date_utc, vr.verification_estimated_started_date_utc as verification_started_date_utc,
vr.verification_estimated_completed_date_utc vr.verification_estimated_completed_date_utc
@ -49,6 +51,7 @@ select
gjd.ab_test_name, gjd.ab_test_name,
gjd.variation, gjd.variation,
gjd.id_verification_request, gjd.id_verification_request,
gjd.first_appearance_at_utc,
gjd.first_appearance_date_utc, gjd.first_appearance_date_utc,
gjd.verification_started_date_utc, gjd.verification_started_date_utc,
gjd.verification_completed_date_utc, gjd.verification_completed_date_utc,
@ -107,4 +110,4 @@ left join
or upper(vp.verification_payment_type) or upper(vp.verification_payment_type)
in {{ checkin_cover_fees_verification_payment_type_items }} in {{ checkin_cover_fees_verification_payment_type_items }}
) )
group by 1, 2, 3, 4, 5, 6, 7 group by 1, 2, 3, 4, 5, 6, 7, 8

View file

@ -4719,6 +4719,15 @@ models:
data_tests: data_tests:
- not_null - not_null
- name: first_appearance_at_utc
data_type: date
description: |
Timestamp of the first Verification Request Feature Flag record created
with the same verification request and A/B test name. Mostly for information
purposes. Cannot be null.
data_tests:
- not_null
- name: first_appearance_date_utc - name: first_appearance_date_utc
data_type: date data_type: date
description: | description: |