sql_header
does not support Jinja + macros
#2977
Labels
content
Improvements or additions to content
improvement
Use this when an area of the docs needs improvement as it's currently unclear
Contributions
Link to the page on docs.getdbt.com requiring updates
https://docs.getdbt.com/reference/resource-configs/sql_header
What part(s) of the page would you like to see updated?
As mentioned here, Jinja + macros (including
ref
+source
) will not work as expected inside ofsql_header
. This is different than pre/post-hooks which do support Jinja + macros (by "late rendering" them).This should be some kind of highlighted warning/note in the docs.
The note could read something like the following:
An option is to include commentary like:
Additional information
No response
The text was updated successfully, but these errors were encountered: