From 4a6158df2876607f6d241f9f0d822a358891327d Mon Sep 17 00:00:00 2001 From: Joaquin Ossa Date: Tue, 25 Feb 2025 14:48:37 +0100 Subject: [PATCH] Added timestamp to a/b test model --- .../core/int_core__ab_test_monitoring_guest_journey.sql | 5 ++++- models/intermediate/core/schema.yml | 9 +++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/models/intermediate/core/int_core__ab_test_monitoring_guest_journey.sql b/models/intermediate/core/int_core__ab_test_monitoring_guest_journey.sql index 63058d3..447f582 100644 --- a/models/intermediate/core/int_core__ab_test_monitoring_guest_journey.sql +++ b/models/intermediate/core/int_core__ab_test_monitoring_guest_journey.sql @@ -24,6 +24,7 @@ with id_verification_request, ab_test_name, variation, + first_appearance_at_utc, date(first_appearance_at_utc) as first_appearance_date_utc from int_core__ab_test_tracking_guest_journey ), @@ -32,6 +33,7 @@ with abt.ab_test_name, abt.variation, abt.id_verification_request, + abt.first_appearance_at_utc, abt.first_appearance_date_utc, vr.verification_estimated_started_date_utc as verification_started_date_utc, vr.verification_estimated_completed_date_utc @@ -49,6 +51,7 @@ select gjd.ab_test_name, gjd.variation, gjd.id_verification_request, + gjd.first_appearance_at_utc, gjd.first_appearance_date_utc, gjd.verification_started_date_utc, gjd.verification_completed_date_utc, @@ -107,4 +110,4 @@ left join or upper(vp.verification_payment_type) 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 diff --git a/models/intermediate/core/schema.yml b/models/intermediate/core/schema.yml index d5ce80d..3216322 100644 --- a/models/intermediate/core/schema.yml +++ b/models/intermediate/core/schema.yml @@ -4719,6 +4719,15 @@ models: data_tests: - 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 data_type: date description: |