Limitations of sql_header
#4890
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?
We should document a few known limitations of
sql_header
.This Stack Overflow post points out that you can't safely use
{{ ref() }}
or{{ source() }}
in thesql_header
.And
{{ this }}
also doesn't work in asql_header
when using a customgenerate_alias_name
.Additional information
Since
sql_header
is often used by users dbt-bigquery toDECLARE
variables, it would be nice to show an example similar to (but not exactly like) this:The text was updated successfully, but these errors were encountered: