Skip to content

Commit

Permalink
Merge pull request #8 from stewartbryson/stewart
Browse files Browse the repository at this point in the history
Renamed models.
  • Loading branch information
stewartbryson committed Sep 11, 2023
2 parents c109f89 + 75b4c37 commit 03241a6
Show file tree
Hide file tree
Showing 12 changed files with 9 additions and 9 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion models/gold/dim_customer.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ with s1 as (
p.credit_rating,
p.net_worth
FROM {{ ref('customers') }} c
left join {{ ref('syndicated_prospects') }} p
left join {{ ref('syndicated_prospect') }} p
using (first_name, last_name, postal_code, address_line1, address_line2)
),
s2 as (
Expand Down
6 changes: 3 additions & 3 deletions models/silver/companies.sql
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ select
) THEN TRUE
ELSE FALSE
END as IS_CURRENT
from {{ ref("finwire_companies") }} cmp
join {{ ref("reference_status_types") }} st on cmp.status = st.st_id
join {{ ref("reference_industries") }} ind on cmp.industry_id = ind.in_id
from {{ ref("finwire_company") }} cmp
join {{ ref("reference_status_type") }} st on cmp.status = st.st_id
join {{ ref("reference_industry") }} ind on cmp.industry_id = ind.in_id
2 changes: 1 addition & 1 deletion models/silver/financials.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ with s1 as (
coalesce(c1.name,c2.name) company_name,
coalesce(c1.company_id, c2.company_id) company_id,
pts as effective_timestamp
from {{ ref('finwire_financials') }} s
from {{ ref('finwire_financial') }} s
left join {{ ref('companies') }} c1
on s.cik = c1.company_id
and pts between c1.effective_timestamp and c1.end_timestamp
Expand Down
2 changes: 1 addition & 1 deletion models/silver/securities.sql
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ select
) THEN TRUE
ELSE FALSE
END as IS_CURRENT
from {{ ref('finwire_securities') }} s
from {{ ref('finwire_security') }} s
left join {{ ref('companies') }} c1
on s.cik = c1.company_id
and pts between c1.effective_timestamp and c1.end_timestamp
Expand Down
6 changes: 3 additions & 3 deletions models/silver/trades_history.sql
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ join
on
t_id = th_t_id
join
{{ ref('reference_trade_types') }}
{{ ref('reference_trade_type') }}
on
t_tt_id = tt_id
join
{{ ref('reference_status_types') }} ts
{{ ref('reference_status_type') }} ts
on
t_st_id = ts.st_id
join
{{ ref('reference_status_types') }} us
{{ ref('reference_status_type') }} us
on th_st_id = us.st_id

0 comments on commit 03241a6

Please sign in to comment.