Skip to content

Commit

Permalink
Korjattu toimipisteen "children"-elementtiä
Browse files Browse the repository at this point in the history
  • Loading branch information
Matz Rasmus committed Jan 9, 2025
1 parent 0121563 commit d230c36
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dbt/models/pub/pub_dim_toimipiste_ja_toimipisteet.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ final as (
) as children
from
toimipiste as toim
left join toimipiste as alto
left join
( select *,
'[]'::jsonb as children from toimipiste
) as alto
on alto.parent_oids ? toim.organisaatio_oid
group by
toim.organisaatio_oid,
Expand Down

0 comments on commit d230c36

Please sign in to comment.