fivetran / dbt_fivetran_utils

Helper utils for our packages
29 stars 19 forks source link

Bugfix/source relation cast #53

Closed fivetran-joemarkiewicz closed 2 years ago

fivetran-joemarkiewicz commented 2 years ago

What change does this PR introduce?

Added a `dbt_utils.type_string()` cast to the `source_relation` macro. There were accounts of failures occurring within Redshift where the casting was failing in downstream models. This will remedy those issues by casting on field creation if multiple schemas/databases are not provided. **If this PR introduces a new macro, how did you test the new macro?**

N/A

If this PR introduces a modification to an existing macro, which packages is the macro currently present in and what steps were taken to test compatibility across packages?

All union feature packages. This was testing on the Social Media Reporting pacakges.

Did you update the README to reflect the macro addition/modifications?