-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
handle exceptions that occur inside of jinja #935
Comments
I can't reproduce this on any dbt versions, going back as far as 0.10.2. I consistently get this message:
Which definitely isn't perfect, but seems pretty helpful to me. Is it possible this was fixed by a jinja update, or something like that? I do recognize that stack trace as something I've seen in the past, and it's definitely unhelpful. |
Are you #wontfix-ing me??? Agreed, I just gave this a spin and couldn't reproduce it either. I didn't see anything in the Jinja changelog that seemed germane to this issue either. Going to close this, but will keep an eye out for this behavior in the wild. |
Found a way to trigger this error! In a model that does not define |
…cleanup Handle undefined variables in jinja better (#935)
Issue
Issue description
Given sql with invalid jinja like:
dbt will throw a very unhelpful error that looks like:
It will likely be difficult to pinpoint the exact error, but it should ideally be able to throw some sort of human-readable parsing error, indicating the model where the syntax error occurred.
The text was updated successfully, but these errors were encountered: