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

Harrison Conlin

07/01/2023, 6:52 AM
I'm feeling like I'm missing something super simple (also im typing this on my phone so excuse any non running code). I've got a
load_assets_from_dbt
project which has a
key_prefix
but not a
source_key_prefix
which I'm looking to port over to the new shiny decorator interface. my
node_info_to_asset_key
is
Copy code
if node_info['resource_type'] == 'source:
    return super().node_info_to_asset_key(node_info)
return super().node_info_to_asset_key(node_info).with_prefix('pond')
but my python assets now have the dbt source documentation, I swear it wasn't like that before. the underlying asset ops have the correct description, but not the asset. Am I doing something wrong?
r

rex

07/03/2023, 2:16 PM
Could you clarify what this means?
but my python assets now have the dbt source documentation
What are you referring to when you say python assets? Are these assets that you’ve defined for your dbt sources? Or assets that are downstream of your dbt models?
h

Harrison Conlin

07/07/2023, 2:57 AM
I want to say assets I've defined for my dbt sources, but I'm not sure if im over reading what you're saying I've just got my dagster assets (e.g. top_ten_on_hackernews, top_hundred_on_hackernews) and then in my dbt sources, I've got top_ten_on_hackernews and top_hundred_on_hackernews