Skip to content

Commit

Permalink
chore(pipeline) : Impove Dora blocked contacts resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
vperron committed Aug 29, 2024
1 parent 9e729df commit 595bfcb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ di_profil_by_dora_profil AS (
),

blocked_contacts AS (
SELECT DISTINCT UNNEST(contact_uids) AS id FROM {{ ref('int_brevo__contacts') }} WHERE est_interdit = TRUE OR date_di_rgpd_opposition IS NOT NULL
SELECT DISTINCT UNNEST(contact_uids) AS id
FROM {{ ref('int_brevo__contacts') }}
WHERE est_interdit = TRUE OR date_di_rgpd_opposition IS NOT NULL
),

blocked_contact_uids AS (
SELECT
SPLIT_PART(id, ':', 3) AS id,
SPLIT_PART(id, ':', 2) AS kind
FROM blocked_contacts
WHERE SPLIT_PART(id, ':', 1) = 'dora'
),

blocked_services_uids AS (
Expand Down

0 comments on commit 595bfcb

Please sign in to comment.