Eric Larson
06/22/2022, 7:55 PMsandy
06/23/2022, 12:48 AMmd_contributions
live in a different schema than the dbt-derived version of md_contributions
? I think best practice would be for the asset keys to reflect those schemasEric Larson
06/23/2022, 2:35 PMname
of the source to generate the asset key, and which in DBT you can give it any arbritrary name. I’m not sure the best way to handle it in general to avoid naming conflicts, maybe add the literal word source
to the key? so in my case the asset key would become source/contribution_source/md_contributions
or maybe just use the db/schema/table
as asset key in all cases
sources:
- name: contributions_source
database: raw
schema: contributions
tables:
Eric Larson
06/23/2022, 2:36 PMsandy
06/27/2022, 3:14 PMnode_info_to_asset_key
function when you load_assets_from_dbt_project
. For sources, all we currently support is source_key_prefix
, but we should support a custom function for sources as well. I filed an issue to track that: https://github.com/dagster-io/dagster/issues/8627.