dbeatty10 / dbt-mysql

dbt-mysql contains all of the code enabling dbt to work with MySQL and MariaDB
Apache License 2.0
75 stars 53 forks source link

Update dbt-core to 1.5 and implement support for model contracts #163

Closed mwallace582 closed 8 months ago

mwallace582 commented 8 months ago

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