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

dev/guion-bluford regression: allow ref's in dbt_project.yml var configs #1047

Closed
drewbanin opened this issue Oct 9, 2018 · 1 comment
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@drewbanin
Copy link
Contributor

Issue

Issue description

The vars config in a models: block of dbt_project.yml should support ref() functions, but they currently fail with the error: 'ref' is undefined. I think this indicates that the compilation context for these vars configs has changed, though I'm not sure exactly in which branch that occurred.

In addition to the ref function working, we sure be sure to maintain parity with the context provided in 0.11.x, unless we explicitly choose to make breaking changes.

The error message here is pretty sparse -- it took me a while to track down the source of this issue. @beckjake - are you separately working on related code here? Something about error handling for jinja code sounds familiar, but I might be misremembering things. The actual error reads:

$ dbt -d run
Encountered an error:
Compilation Error
  'ref' is undefined

with no further info about it in the logs.

Results

'ref' is undefined (see example below)

System information

The output of dbt --version: dev/guion-bluford

Steps to reproduce

# dbt_project.yml

models:
    vars:
        abc: '{{ ref("some_model") }}'
$ dbt compile
@drewbanin drewbanin added the bug Something isn't working label Oct 9, 2018
@drewbanin drewbanin added this to the Guion Bluford milestone Oct 9, 2018
@beckjake
Copy link
Contributor

beckjake commented Oct 9, 2018

vars + project.yml + new bug = Almost certainly caused by PR #1033

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

No branches or pull requests

2 participants