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

David Gasquez

01/20/2023, 11:33 AM
Hey there! I'm having a hard time trying to connect an upstream
dbt
asset. I've created a simple asset (file on disk) and I want to make
dbt
understand that's an upstream requirements. I'm trying to do it without messing with PandasIO Manager. Is there something I might be missing?
o

owen

01/20/2023, 6:59 PM
hi @David Gasquez! the big thing here is just to make sure that the AssetKey of your upstream asset aligns with the key that's generated for the source in your dbt project. By default, we generated a key of
AssetKey(["main", "hits"])
for the source in your dbt project (i.e., the
main / hits
that you see in that screenshot), so you'll want to make sure your python asset matches up with that name. One way to do that would be to change your asset decorator to
Copy code
@asset(key_prefix="main")
def hits():
    ...
👍 1
d

David Gasquez

01/20/2023, 7:13 PM
Thanks! Let me try that 🙂
It worked! 🙂
If I may ask another probably silly question. Is there a way I could easily run a docker container locally as an op locally? I've tried with the docker executor but I'm struggling to find examples
o

owen

01/20/2023, 7:49 PM
hm I'm not the best person to ask on that front -- I'd recommend posting a new question in this channel (just so it doesn't get lost)
ty spinny 1
d

David Gasquez

01/21/2023, 5:56 PM
thanks! will do 🙂