Skip to content

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

@ppastuszkaocado

Description

@ppastuszkaocado

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions