Closed mgsnuno closed 7 months ago
This is expected behavior; {% set %}
blocks contain arbitrary data -- we don't have any way to know that those blocks contain SQL that can be safely formatted.
ok, thank you, would it be possible to tag the blocks we want to be formatted?
Feel free to propose a syntax for that as a new discussion; I'm going to close this issue for now.
Describe the bug formatting does not work in queries defined as variables
To Reproduce format the following:
Expected behavior query should be formatted:
Actual behavior nothing is formatted:
Additional context sqlfmt, version 0.21.0