diff --git a/models/users/user_pii.sql b/models/users/user_pii.sql index 6e6b795b..a9ce7147 100644 --- a/models/users/user_pii.sql +++ b/models/users/user_pii.sql @@ -25,7 +25,7 @@ with from {{ source("event_sink", "user_profile") }} group by user_id ) -select ex.user_id as user_id, ex.external_user_id as external_user_id, ex.username as username, up.name as name, up.email as email +select ex.user_id as user_id, ex.external_user_id, ex.username, up.name, up.email from {{ source("event_sink", "external_id") }} ex left outer join most_recent_user_profile mrup on mrup.user_id = ex.user_id left outer join