From 0c7536879ca183c4e07c31a2eba0fead895d170d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20S=C3=A9bille?= Date: Wed, 31 Jul 2024 10:05:07 +0200 Subject: [PATCH] dbt: Handle all possible values for the 'orienteur' fake organization --- dbt/models/marts/daily/suivi_prescripteurs_habilites.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt/models/marts/daily/suivi_prescripteurs_habilites.sql b/dbt/models/marts/daily/suivi_prescripteurs_habilites.sql index f52fab73..a0e3df8f 100644 --- a/dbt/models/marts/daily/suivi_prescripteurs_habilites.sql +++ b/dbt/models/marts/daily/suivi_prescripteurs_habilites.sql @@ -7,4 +7,4 @@ select from {{ ref('stg_organisations') }} as organisations left join {{ ref("stg_siae_partenaires_prescripteurs") }} as nb_siae_partenaires on organisations.id = nb_siae_partenaires.id -where organisations.type != 'SANS-ORGANISATION' and organisations."habilitée" = 1 +where organisations.type != 'SANS-ORGANISATION' and organisations.type is not null and organisations."habilitée" = 1