[Core] Explain how using the graph
does (or doesn't!) affect the visualization of the DAG
#6027
Labels
content
Improvements or additions to content
dbt Core
The changes proposed in this issue relate to dbt Core
size: large
This change will more than a week to address and might require more than one person
Link to the page(s) on docs.getdbt.com requiring updates
Maybe one or both of:
Tell us more about this update
The big idea is that there's a scenario in which a node can be missing in the visualization of the DAG in dbt Explorer but actually work as intended when building a dbt model. But it's actually not a bug! 🤯
i.e., the compiled query reflects all the intended references but the generated docs is missing some or all.
One of the ways this can happen is when using the
graph
in the transformation code for a model (like here).In that scenario, users can compile and run models that use
ref
andsource
macros but without those references being reflected in the visualization of the DAG in dbt Explorer or the generated documentation website.This can be surprising, so we want to explain it the best we can.
A suggested improvement would be to show or discuss an example similar to dbt-labs/dbt-core#10665, either within the
graph
orexecute
documentation pages.And/or add a section that could illustrate all the caveats of
graph
(by comparing whenexecute==False
andexecute==True
).Reviewers/Stakeholders/SMEs
Dougie Fresh 😎
Related GitHub issues
dbt-labs/dbt-core#10665
Additional information
No response
The text was updated successfully, but these errors were encountered: