dbt-meshify icon indicating copy to clipboard operation
dbt-meshify copied to clipboard

investigate methods to ensure models exist

Open dave-connors-3 opened this issue 1 year ago • 1 comments

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?

dave-connors-3 avatar May 08 '23 14:05 dave-connors-3