Skip to content

Commit

Permalink
postgreql safe data_quality__eligibility_death_flag (#640)
Browse files Browse the repository at this point in the history
* postgreql safe data_quality__eligibility_death_flag

* code suggestion from sarah-tuva cast death_flag as string
  • Loading branch information
BuzzCutNorman authored Nov 22, 2024
1 parent 4291369 commit a2dd6ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SELECT DISTINCT
,'ELIGIBILITY' AS claim_type
,'DEATH_FLAG' AS field_name
,case
when m.death_flag in (1,0) then 'valid'
when cast(m.death_flag as {{ dbt.type_string() }}) in ('1','0') then 'valid'
when m.death_flag is null then 'null'
else 'invalid'
end as bucket_name
Expand Down

0 comments on commit a2dd6ea

Please sign in to comment.