Skip to content

Commit

Permalink
Redshift bug fix for performance period in Quality Measures (#275)
Browse files Browse the repository at this point in the history
* Add date type casting for redshift bug

* Increment package version

* Update dbt docs
  • Loading branch information
sarah-tuva authored Nov 6, 2023
1 parent 579b314 commit ab91d8b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'the_tuva_project'
version: '0.5.11'
version: '0.5.12'
config-version: 2
require-dbt-version: ">=1.3.0"

Expand All @@ -9,7 +9,6 @@ profile: default
vars:

## CCSR data mart vars

# Set to "ip" for inpatient data or "op" for outpatient data (More info in the README)
record_type: "ip"

Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/run_results.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ with period_end as (
{% if var('quality_measures_period_end',False) == False -%}
{{ last_day(dbt.current_timestamp(), 'year') }}
{% else -%}
'{{ var('quality_measures_period_end') }}'
cast('{{ var('quality_measures_period_end') }}' as date)
{%- endif %}
as performance_period_end
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ with period_end as (
{% if var('quality_measures_period_end',False) == False -%}
{{ last_day(dbt.current_timestamp(), 'year') }}
{% else -%}
'{{ var('quality_measures_period_end') }}'
cast('{{ var('quality_measures_period_end') }}' as date)
{%- endif %}
as performance_period_end
)
Expand Down

0 comments on commit ab91d8b

Please sign in to comment.