Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
resolves #7122
Description
In my company, we have a need to run operations on our materialized tables such as user deletion requests. The dbt run-operation is single threaded and doesn't take advantage of the node yml structure. Other submaterializations might be things like 'clone' which just implements snowflake's clone feature.
I was thinking that an improvement would be to (for a particular model)
Another model might be
Materializations named incremental_user_delete and table_user_delete could be created to match above
And it could be run using
dbt run --submaterialization user_delete ...
or
dbt ls --submaterialization user_delete ...
(also compile, parse)
Any model which has the submaterialization would respond to the above run and it would use the dag order / threads to run the operation.
https://getdbt.slack.com/archives/C50NEBJGG/p1677938569851409
Also supports --select submaterialization: syntax.
Checklist
changie new
to create a changelog entry