I was able to get all of the new test classes to pass, and model contracts are working as expected for my dbt models.
There's some trickiness with the difference between types that MySQL allows in schemas, and the types that can be passed into calls to CAST(). I've handed some of the obvious cases, but it's possible that there are gaps with more obscure types.
Checklist
[X] I have run this code in development and it appears to resolve the stated issue
[X] This PR includes tests, or tests are not required/relevant for this PR
[X] I have updated the CHANGELOG.md with information about my change
resolves #145
Description
I've followed the instructions published for updating to dbt-core 1.5 and implemented support for model contracts.
I was able to get all of the new test classes to pass, and model contracts are working as expected for my dbt models.
There's some trickiness with the difference between types that MySQL allows in schemas, and the types that can be passed into calls to
CAST()
. I've handed some of the obvious cases, but it's possible that there are gaps with more obscure types.Checklist
CHANGELOG.md
with information about my change