Skip to content

Commit

Permalink
taking in account the new diag column
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
YannickPassa committed Dec 20, 2024
1 parent e2e6cf3 commit 507b666
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions dbt/models/marts/daily/candidats.sql
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
select
{{ pilo_star(ref('stg_candidats')) }},
{{ pilo_star(ref('stg_candidats'), except=["diagnostic_valide"]) }},
cdd.date_derniere_candidature,
cdd.date_premiere_candidature,
case
when candidats.date_diagnostic > current_date - interval '6 months' then 1
else 0
end as diagnostic_valide,
candidats.diagnostic_valide, --we put it here in order to avoid a metabase mismatch in the column orders and break everything
case
when candidats.age_selon_nir <= 25 then 'Jeune (- de 26 ans)'
when candidats.age_selon_nir > 25 and candidats.age_selon_nir <= 54 then 'Adulte (26-54 ans)'
Expand Down

0 comments on commit 507b666

Please sign in to comment.