Skip to content

[CT-2419] Ensure process_refs is called for nodes referring to versioned models #7369

@gshank

Description

@gshank

If a node refs a versioned model but does not specify a version, the ref will use the latest version. But if a new latest version is added to the ref'd model and nothing changes in the model with the ref, the depends_on unique_id will not be updated.

Create a test case for this situation and update the code in core/dbt/parser/manifest.py "process_refs". We could check for refs to versioned models or just process all refs (not just models with an updated "created_at" timestamp. Processing refs is pretty fast, though it might be useful to compare the time it takes to do it both ways.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions