[CT-656] [Feature] Allow for merge exclude columns #5260
Labels
enhancement
New feature or request
incremental
Incremental modeling with dbt
Team:Adapters
Issues designated for the adapter area of the code
Is this your first time opening an issue?
Describe the Feature
Right now, for incremental models using the
merge
strategy, we allow users to specify a specific list ofmerge_update_columns
to include in the merge statement.For wide, denormalized models, it's likely that users may want/need to exclude only a couple of columns, and update all the rest. Right now, this would require the user to manually specify a potentially long list of all columns that need to be updated, rather than a shorter, more straightforward list of columns not to update.
Once incremental materializations are simplified in the effort to create more streamlined materialization code, this seems like a simple quality of life enhancement!
Describe alternatives you've considered
Create a custom version of
get_merge_sql
to allow for an additional configmerge_exclude_columns
to achieve this behavior.Who will this benefit?
This will be beneficial for users who have wide incremental models, and may need tight controls over the merge behavior on those tables.
Are you interested in contributing this feature?
heck yeah
Anything else?
This was mentioned in the original issue for
merge_update_columns
The text was updated successfully, but these errors were encountered: