-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
commented out macros can still render into target sql in strange ways #458
Comments
I've run into this before. At first it was perplexing / frustrating to me that SQL comments don't also comment out jinja code; however, I came to see that as unreasonable. Of course the jinja compiler doesn't respect SQL comments... Do you think there is a "solve" for this? |
Whoah! That is super-cool. I think adding I also really like the line statement identifier defined in those docs—we should consider incorporating that as well. I find the |
I'm closing this. Really, the answer here is to use correct jinja commenting syntax, which I just didn't know about at the time I originally logged this (from connor's computer). The comment about line identifiers is captured in another issue. |
Given a multiline macro:
and model sql:
the target sql is:
I'm not sure there's anything we can do about this besides recommend using multiline comments, it's just unexpected the first time it happens
The text was updated successfully, but these errors were encountered: