https://dagster.io/ logo
#integration-dbt
Title
# integration-dbt
m

MIke Needham

06/22/2023, 8:58 PM
is there a way to get seeds and macros to show up as assets using the load_assets_from_dbt_project
r

rex

06/22/2023, 9:23 PM
If you set
use_build_command=True
, you will load
models
,
seed
, and
snapshot
as assets.
m

MIke Needham

06/22/2023, 9:38 PM
perfect, thank you
i knew there was a way, just could not find it
is there any way to get macros to show up as assets as well?
r

rex

06/23/2023, 12:19 PM
no — I’m curious why you would want a macro to show up as an asset?
m

MIke Needham

06/23/2023, 12:49 PM
I have some specific post processing that I need done after certain models are processed and that logic was in a dbt macro. was hopin to decouple the post_hook and use dagster to initiate the post flow without having to re-create the wheel
r

rex

06/23/2023, 12:51 PM
Could you just create a downstream asset of your models, and use
dbt run-operation
in that asset?
You could take a look at https://github.com/dagster-io/dagster/discussions/14477 to see if this helps with your use case
m

MIke Needham

06/23/2023, 1:23 PM
I will take a look at that, thanks for the info
2 Views