Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support model selection based on materialization type #2563

Closed
azhard opened this issue Jun 17, 2020 · 2 comments
Closed

Support model selection based on materialization type #2563

azhard opened this issue Jun 17, 2020 · 2 comments
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@azhard
Copy link
Contributor

azhard commented Jun 17, 2020

Describe the feature

Current model selection syntax works with selecting based on model names, sources, tags, packages, and paths. These solve the majority of potential use cases but adding the ability to select models based on a materialization type would be very handy.

A specific example where that can be used: my team's dbt setup currently auto-runs changed models on production when an MR gets merged to master, however we realistically only want to deploy changed views and not to cause incremental materializations for example as those are typically based on a schedule.

I imagine as an actual CLI command this would look something like when implemented:

dbt run --models materialization:view

Describe alternatives you've considered

This same behaviour can be achieved if a user tags all view (or non-view) models but this is more cumbersome so not ideal.

Additional context

This feature should be supported across databases.

Who will this benefit?

Any dbt user who wants to trigger runs based on a materialization type.

@azhard azhard added enhancement New feature or request triage labels Jun 17, 2020
@drewbanin drewbanin removed the triage label Jun 17, 2020
@drewbanin
Copy link
Contributor

hey @azhard - thanks for opening this issue. This is a dupe of #2425, prioritized for our next feature release. Closing this!

@drewbanin drewbanin added the duplicate This issue or pull request already exists label Jun 17, 2020
@azhard
Copy link
Contributor Author

azhard commented Jun 17, 2020

Awesome! Thanks @drewbanin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants