You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-actionsbot
changed the title
[Bug] when there's a variable being called in a jinja block that is not defined in dbt_project.yml, there's an compile error
[CT-1409] [Bug] when there's a variable being called in a jinja block that is not defined in dbt_project.yml, there's an compile error
Oct 26, 2022
Big idea: At parse time, a missing var actually returns None (to avoid raising errors due to missing vars in disabled models). That works fine sometimes, but not if the variable is expected to support __iter__ type operations. Hence, 'NoneType' object is not iterable.
Going to re-label this one as a spike, to understand what's possible here as far as better UX.
This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please comment on the issue or else it will be closed in 7 days.
Although we are closing this issue as stale, it's not gone forever. Issues can be reopened if there is renewed community interest. Just add a comment to notify the maintainers.
Is this a new bug in dbt-core?
Current Behavior
Not 100% sure what about this code block causes the error. Possible there's a variable being called inside a jinja block
https://www.loom.com/share/eb8a9d3b57e24e588c5fa8b96e9d13cf
Expected Behavior
We shouldn't show any error here (?) -- see Loom for more info
Steps To Reproduce
Relevant log output
No response
Environment
Which database adapter are you using with dbt?
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: