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

0.17.0: Cannot execute an empty query #2439

Closed
drewbanin opened this issue May 12, 2020 · 0 comments · Fixed by #2440
Closed

0.17.0: Cannot execute an empty query #2439

drewbanin opened this issue May 12, 2020 · 0 comments · Fixed by #2440
Labels
bug Something isn't working

Comments

@drewbanin
Copy link
Contributor

Describe the bug

dbt is errorring with cannot execute and empty query for a model that does not have any columns described in a schema.yml file, but does have persist_docs: {columns: true} configured.

Steps To Reproduce

  1. Create a simple model
  2. Enable column-level docs persistence
  3. Do not add column descriptions for the model
  4. Run dbt run and observe the error

Expected behavior

I would expect dbt to not run a query, rather than running an empty query which fails!

System information

I replicated this on Postgres, but I imagine it could impact other databases too.

The output of dbt --version:

0.17.0-rc1
@drewbanin drewbanin added the bug Something isn't working label May 12, 2020
@drewbanin drewbanin added this to the Octavius Catto milestone May 12, 2020
beckjake added a commit that referenced this issue May 13, 2020
@beckjake beckjake mentioned this issue May 13, 2020
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant