[CT-2994] [Bug] sql_header
with jinja not parsed correctly with dbt show
#8417
Labels
Milestone
sql_header
with jinja not parsed correctly with dbt show
#8417
Is this a new bug in dbt-core?
Current Behavior
If you have some jinja in your
sql_header
,dbt show
injects it verbatim, without doing any parsing - this results in invalid sql characters.Expected Behavior
dbt show
should be well behaved andsql_header
should be parsed/resolved prior to sending the query to the datawarehouse.Steps To Reproduce
1.5.4
) and 1.6.latest (1.6.0
), do a show on foo:Relevant log output
No response
Environment
Which database adapter are you using with dbt?
snowflake
Additional Context
If we downgrade to
dbt-core==1.5.0
, show works as expected:But that's simply because we don't inject
sql_header
as we are now doing with #7568Additionally, in the dbt Cloud IDE, 1.5.latest works because it does
show --inline
with the file contents:The text was updated successfully, but these errors were encountered: