-
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
custom schema feature unintentionally creates schema stub #913
Comments
Thanks for the report @hui-zheng. As a workaround, I'd recommend either giving |
It'd be nice to fix this behavior rather than asking us to create unwanted schemas. There are no tables in there; why should we create such a schema? Edit: I posted this same issue in Slack. Here's my original message: I have a custom Workaround is to set it to the name of one of my subfolders, but it's odd to me that some internal DBT machinery thinks it should go create schemas for things that will never have tables in them. Any reason for this behavior? |
…ema, and stops creaing one. Closes dbt-labs#913.
I think we discussed this on Slack, but: the reason for this stub schema is because Snowflake requires a "default" schema when performing certain operations (like creating temporary tables). I think to fix this, we'll need to pass a schema name into the snowflake version of the |
Issue
Issue description
The custom schema feature unintentionally creates schema stub.
For example, when we specify "email_platform_out" and "email_platform_in" with custom schema feature, dbt will create "email_platform" as a dummy schema, which is not expected.
Results
For example, I want to use custom schema to specify two schemas, "email_platform_out" and "email_platform_in".
In profiles.yml, I set the
scheme=email_platform
In dbt_project.yml, I set all models in these two schemas
when I ran
dbt run
, receive the following error msg because dbt tried to create schema “email_platform” but failed, which is not expected, because I don't have nor want to create "email_platorm" schema.System information
The output of
dbt --version
:Steps to reproduce
The text was updated successfully, but these errors were encountered: