tuva-health / tuva

Main repo including core data model, data marts, reference data, terminology, and the clinical concept library
https://thetuvaproject.com/
188 stars 48 forks source link

BUG: Update date cast macro for Postgres #487

Closed eldon-tuva closed 5 months ago

eldon-tuva commented 5 months ago

Describe your changes

Please include a summary of any changes.

In Postgres some date casting functions were failing using the 'try_to_cast_date' macro. For Postgres adapter switched this logic to use dbt.safe_cast.

How has this been tested?

Please describe the tests you ran to verify your changes. Provide instructions or code to reproduce output.

dbt build

Reviewer focus

Please summarize the specific items you’d like the reviewer(s) to look into.

Checklist before requesting a review

Package release checklist

(Optional) Gif of how this PR makes you feel

Loom link