Skip to content

Commit 59cb6e2

Browse files
Merge pull request #25 from C00ldudeNoonan/transformation-fixes
dbt model fixes
2 parents 7281df1 + a690ee9 commit 59cb6e2

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

dbt_project/models/government/fred_quarterly_roc.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ all_months AS (
3838
SELECT
3939
db.series_code,
4040
db.series_name,
41-
db.month_date,
41+
months.month_date,
4242
CONCAT(
43-
EXTRACT(YEAR FROM db.month_date),
43+
EXTRACT(YEAR FROM months.month_date),
4444
'-',
45-
EXTRACT(MONTH FROM db.month_date)
45+
EXTRACT(MONTH FROM months.month_date)
4646
) AS year_month
4747
FROM date_bounds AS db
4848
CROSS JOIN (
@@ -54,7 +54,7 @@ all_months AS (
5454
)
5555
) AS month_date
5656
) AS months
57-
WHERE db.month_date >= db.min_date AND db.month_date <= db.max_date
57+
WHERE months.month_date >= db.min_date AND months.month_date <= db.max_date
5858
),
5959

6060
data_with_gaps AS (

dbt_project/models/government/housing_mortgage_rates.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ SELECT
5353
) AS monthly_payment_no_down_payment
5454
FROM rate
5555
INNER JOIN price ON rate.date = price.date
56-
ORDER BY date ASC
56+
ORDER BY rate.date ASC
5757

5858

5959
-- median mortagate payment

macro_agents/src/macro_agents/defs/constants/fred_series_lists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
# Interest Rates & Yield Curve
4646
interest_rates_series = [
4747
("FEDFUNDS", "Effective Federal Funds Rate"),
48-
("DFF", "Federal Funds Effective Rate"),
48+
("DFF", "Federal Funds Effective Rate"),
4949
]
5050

5151
# Money Supply & Credit

macro_agents/src/macro_agents/defs/constants/market_stack_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"lumber",
6161
"titanium",
6262
"zinc",
63-
"iron ore",
63+
"iron_ore",
6464
"gallium",
6565
"germanium",
6666
"manganese",

0 commit comments

Comments
 (0)