You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
When we run a job for just these models (--target other_db), it creates all the schemas in the other_db database, not just the one we need for these particular models.
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: