Skip to content

Commit

Permalink
chore(pipeline) : Remove the condition about 0xad char in dora contacts
Browse files Browse the repository at this point in the history
This has since been fixed.
  • Loading branch information
vperron committed Aug 15, 2024
1 parent 92208de commit 73536f7
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
WITH structure_contacts AS (
SELECT
-- For an unknown reason, some emails are polluted by soft hyphen characters
REPLACE(courriel, U&'\00ad', '') AS "courriel",
'dora:structures:' || id AS contact_uid
courriel AS "courriel",
'dora:structures:' || id AS contact_uid
FROM {{ ref('stg_dora__structures') }}
WHERE courriel IS NOT NULL
),

service_contacts AS (
SELECT
-- For an unknown reason, some emails are polluted by soft hyphen characters
REPLACE(courriel, U&'\00ad', '') AS "courriel",
'dora:services:' || id AS contact_uid
courriel AS "courriel",
'dora:services:' || id AS contact_uid
FROM {{ ref('stg_dora__services') }}
WHERE courriel IS NOT NULL
),
Expand Down

0 comments on commit 73536f7

Please sign in to comment.