Feature request: generate sources
"update" mode also update staging models (rather than overwrite or leave unchanged)
#342
Labels
enhancement
New feature or request
reviewed: yes
Has undergone review
triaged: no
Hasn't been approved for future implementation
Describe the current behavior
If I have a pre-existing
some_staging_model.sql
as:, and there is a new column that should be added due to it's being recently-added in the source,
generate sources
will remove my existing transformations when it updatessome_staging_model.sql
as:Requested behaviour
I would expect that it would retain the existing SQL, and just add new columns / drop newly-deleted columns
Desktop (please complete the following information):
Additional context
Contents of my .dbt_coves.config.yml:
Maybe this should only be the case if the
update
strategy is set to "update"?I'm trying to automate my staging layer refresh using dbt-coves. If, however, I'll lose all staging layer transformations every time it's run, then I can't use it for this purpose.
The text was updated successfully, but these errors were encountered: