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

Remove customized `snapshot_check_all_get_existing_columns` macro #137

Closed dbeatty10 closed 1 year ago

dbeatty10 commented 1 year ago

resolves #134

Description

The most common reason for customized macros in dbt-mysql is that typical databases have relation names with three parts whereas MySQL has only two. E.g., a fully-qualified table name in Postgres is database.schema.table versus database.table in MySQL. The missing part in MySQL is the information_schema "catalog".

DBMS Fully-qualified relation name Parts
Postgres database.schema.table 3
MySQL database.table 2

In this particular case, we were able to get rid of one of the customized macros 🎉

Checklist