dbt-meshify
dbt-meshify copied to clipboard
investigate methods to ensure models exist
right now, for model contracts, we rely on the catalog.json
artifact for column information. Using the artifact assumes that the models exist in the environment we're running the package in, and can lead to some issues if the models do not yet exist.
This is a challenge to manage when
- Models are renamed with the version operation (fix: do any contract operations first)
- Users have not run a whole
dbt run
in dev before attempting to use this package.
Should we think about some sort of dry-run mode to stub in metadata only models before all ops (select * from ... where false
)? Is it more reliable to leverage the get_columns_in_query
macro, perhaps as a run operation?