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

show helpful messages if permissions denied in db #76

Merged
merged 2 commits into from
Jul 26, 2016

Conversation

drewbanin
Copy link
Contributor

@drewbanin drewbanin commented Jul 26, 2016

also, don't try to recreate the schema if it already exists. Pursuant to: #66

Big problem here is that dbt runs create schema if not exists [schema-name] on every invocation of dbt run. This is usually nbd, but if the dbt user doesn't have permissions to create a schema, then the query fails. First, dbt checks to see if the schema already exists. If it does, then the create schema... query is not run. If the create schema... query does run, then the exception is caught if thrown and a helpful error message is shown

@drewbanin drewbanin self-assigned this Jul 26, 2016
@drewbanin drewbanin merged commit d1f1010 into master Jul 26, 2016
@drewbanin drewbanin deleted the fix/non-superuser-support branch August 4, 2016 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant