Clarify statement blocks macro #5087
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
@Tonayya raised that the example code for statement blocks here doesn't actually work. We should fix this up so users don't get confused:
So if you actually run this:
dbt won't know how to resolve the reference so it needs to be specified somewhere. So this can either be done using -- depends_on or doing a ref() function outside the statement block:
Option A:
Option B:
What part(s) of the page would you like to see updated?
https://docs.getdbt.com/reference/dbt-jinja-functions/statement-blocks
Additional information
No response
The text was updated successfully, but these errors were encountered: