Skip to content

Commit

Permalink
fixed model alias issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kgmcquate committed Feb 28, 2024
1 parent 14af486 commit 65eae3d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/dbt_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ jobs:

- name: load test data
run: dbt seed --target ${DBT_TARGET}

- name: run models
run: dbt run --target ${DBT_TARGET}

- name: dbt test macros
run: dbt test --target ${DBT_TARGET}
Expand Down Expand Up @@ -147,6 +150,9 @@ jobs:
- name: load test data
run: dbt seed --target ${DBT_TARGET}

- name: run models
run: dbt run --target ${DBT_TARGET}

- name: dbt test macros
run: dbt test --target ${DBT_TARGET}

Expand Down Expand Up @@ -186,6 +192,9 @@ jobs:

- name: load test data
run: dbt seed --target ${DBT_TARGET} --exclude colnames_with_spaces

- name: run models
run: dbt run --target ${DBT_TARGET}

- name: dbt test macros
run: dbt test --target ${DBT_TARGET} --exclude tag:dataset-colnames_with_spaces
Expand Down Expand Up @@ -222,6 +231,9 @@ jobs:
- name: load test data
run: dbt seed --target ${DBT_TARGET} --exclude colnames_with_spaces

- name: run models
run: dbt run --target ${DBT_TARGET}

- name: dbt test macros
run: dbt test --target ${DBT_TARGET} --exclude tag:dataset-colnames_with_spaces

Expand Down
2 changes: 1 addition & 1 deletion integration_tests/models/sp500_agg.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
WITH
formatted as (
SELECT
date_part('dayofweek', day) as day_of_week,
{{ dbt_date.date_part("dayofweek", "day") }} as day_of_week,
high,
low
FROM {{ ref('sp500_daily') }}
Expand Down

0 comments on commit 65eae3d

Please sign in to comment.