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

Ok 729 suren siirtotiedostoja #71

Merged
merged 2 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
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
18 changes: 14 additions & 4 deletions dbt/models/int/int_yleiskayttoiset/int_organisaatio_rakenne.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,19 @@ org (parent_oid, child_oid) as (
org2.organisaatio_oid as child_oid
from organisaatio as org2
inner join org as orga on orga.child_oid = org2.ylempi_organisaatio
),

final as (
select
parent_oid,
child_oid
from org
union
select
organisaatio_oid as parent_oid,
organisaatio_oid as child_oid
from organisaatio
)

select
parent_oid,
child_oid
from org
select * from final

1 change: 1 addition & 0 deletions dbt/models/pub/pub_dim_hakukohde.sql
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,4 @@ final as (
)

select * from final
order by haku_oid
1 change: 1 addition & 0 deletions dbt/models/pub/pub_dim_hakutoive.sql
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ final as (
)

select * from final
order by haku_oid
3 changes: 2 additions & 1 deletion dbt/models/pub/pub_dim_organisaatio_rakenne.sql
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ with source as (
select
parent_oid,
child_oid
from source
from source
order by 1,2
6 changes: 5 additions & 1 deletion dbt/models/pub/pub_fct_hakemus.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{{
config(
materialized = 'table'
materialized = 'table',
indexes = [
{'columns':['haku_oid']}
]
)
}}

Expand All @@ -23,3 +26,4 @@ int as (
)

select * from int
order by haku_oid
Loading