Hey :wave: `load_assets_from_dbt_project` is not c...
# ask-community
c
Hey ๐Ÿ‘‹
load_assets_from_dbt_project
is not creating the asset lineage correctly on my end โ€” wondering if itโ€™s a bug, or something wrong on my end. I created a mock dbt project with 3 sources and 4 models with the lineage shown in the image below (see thread). When running the following code on this mock dbt project, I get a lineage in Dagster where all sources are connected to all models, and the lineage between dbt models is completely missing.
Copy code
dbt_assets = AssetGroup(
    load_assets_from_dbt_project(
        project_dir=DBT_PROJECT_DIR,
        profiles_dir=DBT_PROFILES_DIR,
    ),
    resource_defs={
        "dbt": dbt_cli_resource.configured({"project_dir": DBT_PROJECT_DIR, "profiles_dir": DBT_PROFILES_DIR})
    }
)
Happy to report this issue on Github if it indeed is a bug.
p
cc @owen
o
definitely looks like a bug! thanks for reporting, I'll take a look
c
From my very limited debugging, it seems potentially related to some refactoring on the
multi_asset
decorator that just went in the last release. I also got this unexpected behaviour when attempting to use the
multi_asset
decorator in another use case. I remember trying out the
load_assets_from_dbt_project
a couple weeks ago and it worked fine ๐Ÿ‘ Thanks @owen!
o
that definitely sounds right ๐Ÿ™‚