Skip to content

Dependency is getting lost when the models is getting referred through macros #714

Open
@paritoshg2010

Description

Hi Team,

I noticed that dependency graph is getting lost when the models are referred through macros.
For example, in the below screenshot, the model B & C is created from macro where model B's macro is referring model A & model C's macro is referring model B in it. So ideally model A should run first & then B and then C. Here all three are running in parallel when using the DbtTaskGroup. Just to add, this dependency runs as expected when using simple dbt run command.

Through DbtTaskGroup:

image

Expected:
Model A -> Model B -> Model C

Not sure if this is a known issue, but if you can please check and advise.

Metadata

Assignees

No one assigned

    Labels

    area:dependenciesRelated to dependencies, like Python packages, library versions, etcarea:lineageRelated to open lineage or DBT dataset lineagearea:parsingRelated to parsing DAG/DBT improvement, issues, or fixesdbt:runPrimarily related to dbt run command or functionalityparsing:dbt_manifestIssues, questions, or features related to dbt_manifest parsingpriority:highHigh priority issues are blocking or critical issues without a workaround and large impact

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions