-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
dbt should only create schemas for models that are being run #1239
Labels
bug
Something isn't working
Milestone
Comments
We create a few models for specific purposes in separate Snowflake database (call it other_db) from the rest of the analytical data warehouse. However, we manage this from the same dbt repo we use for the DW to reuse code and base models. |
beckjake
added a commit
that referenced
this issue
Jan 28, 2019
…ed-schemas Only create schemas for selected nodes (#1239)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue
Issue description
dbt creates all of the schemas for models in a project, even if only a subset of the models have been selected with
--models
. Instead, dbt should only create the schemas for models which are invoked in a given run.Results
dbt created every custom schema defined in a dbt project, even though I only selected one model with
--models
.System information
dbt version: 0.13.0-a1
python version: 3.7.2
python path: /Users/drew/fishtown/dbt/env/bin/python3
os info: Darwin-18.2.0-x86_64-i386-64bit
Note: This affects versions before 0.13.0-a1, and appears to affect at least 0.12.1 and 0.12.2 (but possibly older versions too)
Steps to reproduce
schema_1
,schema_2
, andschema_3
have been createdThe text was updated successfully, but these errors were encountered: