-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Issue with jinja call and endcall syntax with v0.14.0 #335
Comments
I thought the contents of a |
Sorry probably a strange sample without context. But I can confirm that if you replace it with SQL it still fails, if that helps?
|
And an even more simple example fails as well:
|
ok, I see the problem... I thought in dbt, the call blocks have to be labeled {% set args %}
select * from foo
{% endset %}
{{ foo(args) }} The reason I ask is because for |
Well, I wouldn't say the contents have to be SQL, because that same library allows you to specify your mock data as CSV as shown here: https://github.com/EqualExperts/dbt-unit-testing#different-ways-to-build-mock-values |
@tconbeer Thanks! Will look for a new version with this change and try it out... |
@AndrewLane 0.14.1 just hit PyPI |
I'm actually still having trouble (I guess I made my steps to repro too simple) so I'll open up a new issue. |
Describe the bug
sqlfmt error with jinja syntax for start and endcall that used to parse previously.
To Reproduce
Run sql-fmt on the following code:
Expected behavior
Should not fail to parse
Actual behavior
Additional context
Version v0.14.0 appears to break this
The text was updated successfully, but these errors were encountered: