Do folks have any strategies to enforce naming/typing conventions in your models? For example:
- Every
BOOLEAN
column should start withis_
orhas_
- If a column starts with
is_
orhas_
, it should beBOOLEAN
Some solutions that come to mind:
- An existing DBT package … that’d be ideal, but I haven’t found anything
- Catch this in a code review … that’d be nice, but this is something a human could easily miss!
- Have some sort of check on your yaml files … that assumes that folks are documenting their models properly
-
Run these checks against the database after
dbt run
… this seems like the most robust option, but it feels like a lot of work