_DictShim optimization causes incompatibility with dbt access to node.depends_on_nodes in NodeSelector
Author: mschweyenCreated Sep 30, 2025Updated Sep 30, 2026
Labelsstale
The optimization using _DictShim does not work in all cases. In our situation we are using selector with IndirectSelection.Buildable. In this case dbt resolution of the indirect_selection is not working. DBT is accessing depends_on**_nodes** where the _DictShim provides only depends_on**.nodes**.
I propose to switch back to "manifest = Manifest.from_dict(manifest_json)" in _select_unique_ids_from_manifest to esure compatibility with dbt.
https://github.com/dagster-io/dagster/blob/f3a22e2beffb637a4b23deabff4f98ae04c6db52/python_modules/libraries/dagster-dbt/dagster_dbt/ utils.py#L110C11-L110C20
Source: dagster-io/dagster