Skip to content

Commit 09a7f26

Browse files
update base file for level_sources (#260)
2 parents f0aa408 + d50e945 commit 09a7f26

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

dbt/models/staging/dashboard_pii/base/base_dashboard_pii__level_sources.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ source as (
66

77
renamed as (
88
select
9-
id as level_sources_id,
9+
id as level_source_id,
1010
level_id,
1111
created_at,
1212
updated_at
13+
from source
1314
)
1415

1516
select *
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
with
22
level_sources as (
3-
select *, row_number () over (order by created_at) as row_num
3+
select *
44
from {{ ref('base_dashboard_pii__level_sources') }}
55
),
66

77
final as (
88
select
9-
level_sources_id,
9+
level_source_id,
1010
level_id,
1111
created_at,
1212
updated_at
13-
from level_sources
14-
where row_num = 1)
13+
from level_sources )
1514

1615
select *
1716
from final

0 commit comments

Comments
 (0)