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

@ppastuszkaocado ppastuszkaocado commented Nov 28, 2018

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 was marked as outdated.

Copy link
Contributor

@bkiu bkiu commented May 7, 2019

I'll work on this for PyCon 2019 sprints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.