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

discard empty hooks #620

Closed
drewbanin opened this issue Dec 14, 2017 · 0 comments
Closed

discard empty hooks #620

drewbanin opened this issue Dec 14, 2017 · 0 comments
Assignees

Comments

@drewbanin
Copy link
Contributor

drewbanin commented Dec 14, 2017

This might already work correctly for some adapters / hook-types. dbt should not choke on hooks that do not contain any sql.

For example:

post-hook: "{% if target.name == 'prod'%} grant usage on schema to user {% endif %}"

or

models:
  post-hook:
    # no hook here

Both of these cases (empty string / None) should be skipped in hooks

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

No branches or pull requests

1 participant