gouline / dbt-metabase

dbt + Metabase integration
https://pypi.org/project/dbt-metabase/
MIT License
442 stars 63 forks source link

Hidden visibility table columns should not be synced #264

Closed kaiks closed 1 day ago

kaiks commented 2 days ago

When the schema of a table changes, and the table is hidden, this breaks the dbt-metabase sync. According to the metabase spec, these tables should not be synced at all, see: https://github.com/metabase/metabase/issues/45085

Right now when a column name changes, this would break the dbt-metabase sync:

WARNING 2024-07-03 11:21:53 +0200 — Field 'NEW_COLUMN' not in table 'SCHEMA.TABLE' _models.py:103

and eventually returns an error code:

dbtmetabase.errors.MetabaseStateError: Unable to sync models with Metabase

My request would be to stop syncing the columns of these tables.