Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prise en compte de la nouvelle colonne "diagnostic valide" #386

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading