Skip to content
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
2 changes: 1 addition & 1 deletion .sqlfluff
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ templater = dbt
# Allow longer lines for complex SQL (default is 80)
max_line_length = 120
ignore = parsing
exclude_rules = RF02, RF03, RF04, CP01, AL01, ST01, ST02, ST06, LT02, LT03, LT05, LT08, LT09, LT14, AM03
exclude_rules = RF01, RF02, RF03, RF04, CP01, CP02, CP03, CP04, CP05, AL01, ST01, ST02, ST03, ST06, LT02, LT03, LT05, LT08, LT09, LT14, AM03

[sqlfluff:templater:dbt]
project_dir = dbt_project
Expand Down
3 changes: 0 additions & 3 deletions dbt_project/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ models:
staging:
+schema: economics_staging
+materialized: view
analytics:
+schema: economics_marts
+materialized: table
markets:
+schema: economics_marts
+materialized: table
Expand Down
2 changes: 1 addition & 1 deletion dbt_project/models/analysis/market_economic_analysis.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ WITH economic_data AS (
data_source AS economic_data_source,
-- Create month_date for joining
CASE
WHEN REGEXP_CONTAINS(year_month, r'^\d{4}-\d{1,2}$')
WHEN REGEXP_CONTAINS(year_month, '^\\d{4}-\\d{1,2}$')
THEN
DATE(
CAST(SPLIT(year_month, '-')[OFFSET(0)] AS INT64),
Expand Down
1 change: 0 additions & 1 deletion dbt_project/models/markets/nasdaq_companies_summary.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

WITH base_data AS (
SELECT
symbol,
Expand Down
1 change: 0 additions & 1 deletion dbt_project/models/markets/sp500_companies_summary.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

WITH base_data AS (
SELECT
symbol,
Expand Down
2 changes: 1 addition & 1 deletion dbt_project/models/staging/corporate_actions.sql
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ splits_api_adjusted AS (
FROM {{ ref('stg_sp500_companies_prices') }}
) AS p
ON sa.symbol = p.symbol
AND p.date < sa.date
AND sa.date > p.date
)
WHERE prior_price_rank = 1
),
Expand Down
Loading