nice-gpu-34859
06/15/2023, 2:31 PMSELECT
user_id,
'experiment_id' as experiment_id,
case
when (to_number(left(md5(concat(user_id, 'hc_channel_v3')), 8),'XXXXXXXX')::bigint::float / 4294967295::float <= 0.5) then 'variant_B'
else 'variant_A'
end as variation_id
FROM
users as u
I understand the recommended approach is to send an event with the assignment, but is re-doing the hashing on the query something that is supported / recommended as well?future-teacher-7046
Open source platform for stress free deployments, measured impact, and smarter decisions.
Powered by