https://dagster.io/ logo
#ask-community
Title
# ask-community
s

Saul Burgos

02/17/2023, 9:35 PM
I am trying to create a job using "define_asset_job" from an asset that is a "dbt sources" not a model. the name is. "airbnb review234" , I know is a "assetsKey" because I am printing "asset_deps" of the "load_assets_from_dbt_project" when the dbt models are loaded. and I see the name there (see image) But is giving error, I can't not use sources dbt on "assetSelection" ?
o

owen

02/17/2023, 11:35 PM
an asset selection specifies the keys of the asset that you want that job to materialize -- dbt sources can't be executed (they're just references to other tables), so they are not valid keys
s

Saul Burgos

02/18/2023, 4:16 PM
oooh Thanks. and what is the best approach to materialize all the downstream of a dbt source with dasgter? how can I select the direct child of a known source and materialize the downstream by code?