Why do my dbt assets have the key format `project_...
# integration-dbt
q
Why do my dbt assets have the key format
project_name / table_name
when I use
load_assets_from_dbt_project
? I am not using yhe
key_prefix
option when i load the assets from dbt. What can I do to only have the table names as the asset keys?
o
hi @Qwame! are you configuring a custom schema for those models? if not, I'd expect the keys to just be the model names. regardless, you can fully customize how the asset keys are generated with the
node_info_to_asset_key
argument. I believe
lambda node_info: AssetKey(node_info["name"])
would ensure than no prefix would be added
ty spinny 1
q
I could be using a custom schema through the
generate_schema_name
macro. I will try the
node_info_to_asset_key
and let you know how it goes.