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

Allow custom model naming

Open mattppal opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Since dbt requires unique model names, our models are named by the convention models/schema/schema__table.sql. When running generate properties, the models are picked up by the wrong names, e.g.

Model locations.locations__county not materialized, did you execute dbt run?. 
Model locations.locations__state not materialized, did you execute dbt run?.

Where the models are actually named

locations.state
locations.county

Describe the solution you'd like Allow for custom model naming conventions so that model names do not have to equal table names.

mattppal avatar Mar 21 '23 13:03 mattppal

Hi @mattppal, thanks for your contribution.

In order for dbt-coves to generate property files properly, model data is obtained from your database through dbt adapter.

This means that both un-materialized and ephemeral models cannot be used.

BAntonellini avatar Jun 07 '23 11:06 BAntonellini