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

meta.find_undeclared_variables returns "range" as undeclared variable #931

Closed
ppastuszkaocado opened this issue Nov 28, 2018 · 1 comment · Fixed by #994
Closed

meta.find_undeclared_variables returns "range" as undeclared variable #931

ppastuszkaocado opened this issue Nov 28, 2018 · 1 comment · Fixed by #994

Comments

@ppastuszkaocado
Copy link

Given the following text snippet:

SELECT date, sku, {% for lag in range(1, 5) %} a {% endfor %} FROM `{{project}}.{{dataset}}.targets`

I'd expect meta.find_undeclared_variables to return only project and dataset.
In fact, range is also returned as undeclared variable.

  • Python version: 3.6
  • Jinja version: 2.10
@bkiu

This comment has been minimized.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants