Closed dgitis closed 1 year ago
I can clarify. Using {%-
will remove whitespace generated by the jinja script while {%
will include the literal whitespace used inside the jinja script.
Let me make that change, commit, and @dgitis please retest
all set
I tried that but only removing the ticks from the jinja immediately surrounding the clone
statements and it didn't do anything but this latest version with the changes that you made worked, albeit with a lot of whitepace between the comment and the clone statement.
I seem to have started branch behind by a few commits. This should be ready to merge now @adamribaudo-velir .
Description & motivation
Something in how dbt processes macros in pre-hooks causes code without line breaks to appear on a single line in production but not development. This results in code that we want getting commented out when there isn't a blank line after the comment, but only in production.
This results in the following code running in production on dbt Cloud.
This PR results in something like this code running.
Checklist
dbt test
andpython -m pytest .
to validate existing tests