-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Hi there,
In https://docs.getdbt.com/reference/node-selection/state-comparison-caveats, it is stated:
Vars
If a model uses a
varorenv_varin its definition, dbt is unable today to identify that lineage in such a way that it can include the model instate:modifiedbecause thevarorenv_varvalue has changed.
I was wondering if there is an issue tracking this limitation; I searched for one and couldn't find one, so I hope it's OK that I opened this issue so that our team can follow its status. (If there was one and I missed it, apologies!)
Also, I apologize for the naive question, but would it not be easier, at least for the case where the desired effect is to re-run all changed models and their children, to check if the source code after preprocessing (Jinja macro expansion) has changed, instead of before? I would expect that this would automatically cause changes in variables to propagate to changes to the compiled code of the models, which would then indicate a need to re-run them.
Thanks!