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

dbt trying to parse tags in analyses even when wrapped in raw tags #1152

Closed
clrcrl opened this issue Nov 27, 2018 · 0 comments
Closed

dbt trying to parse tags in analyses even when wrapped in raw tags #1152

clrcrl opened this issue Nov 27, 2018 · 0 comments
Assignees
Milestone

Comments

@clrcrl
Copy link
Contributor

clrcrl commented Nov 27, 2018

Issue

Steps to Reproduce

  1. Put an unknown tag within raw tags in a sql file, in your analysis directory (note that the bug doesn't occur in a model).
{% raw %}
{% form %}
date_part:
    type: select
    default: day
    options: [hour, day, week, month]
{% endform %}
{% endraw %}
  1. run dbt compile

Expected Result

The following should be compiled:

{% form %}
date_part:
    type: select
    default: day
    options: [hour, day, week, month]
{% endform %}

Actual Result

Error on compilation:

Found 0 models, 0 tests, 0 archives, 1 analyses, 122 macros, 2 operations, 0 seed files

10:56:47 | Concurrency: 1 threads (target='dev')
10:56:47 |
Encountered an error:
Runtime Error
  Compilation Error in analysis form_tag (analysis/analysis/form_tag.sql)
    Encountered unknown tag 'form'.
      line 2
        {% form %}

System information

OS: MacOS Mojave
Python 3.7.1
dbt 0.12.1

@clrcrl clrcrl changed the title dbt trying to parse tags even when they are wrapped in raw tags dbt trying to parse tags in analyses even when wrapped in raw tags Nov 27, 2018
@drewbanin drewbanin added this to the Wilt Chamberlain milestone Nov 28, 2018
@beckjake beckjake self-assigned this Dec 3, 2018
beckjake added a commit that referenced this issue Dec 3, 2018
…-inside-raw

fix analysis to only compile sql once like model nodes [#1152]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants