Merged PR 4507: Added timestamp to a/b test model
# Description Added timestamp to a/b test model to start the measures from the adequate date and time # Checklist - [x] The edited models and dependants run properly with production data. - [x] The edited models are sufficiently documented. - [x] The edited models contain PK tests, and I've ran and passed them. - [ ] I have checked for DRY opportunities with other models and docs. - [ ] I've picked the right materialization for the affected models. # Other - [ ] Check if a full-refresh is required after this PR is merged. Added timestamp to a/b test model Related work items: #27721
This commit is contained in:
commit
cace0f908d
2 changed files with 13 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -4719,6 +4719,15 @@ models:
|
||||||
data_tests:
|
data_tests:
|
||||||
- not_null
|
- not_null
|
||||||
|
|
||||||
|
- name: first_appearance_at_utc
|
||||||
|
data_type: timestamp
|
||||||
|
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: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue