Hey there! I'm having a hard time trying to connec...
# ask-community
d
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
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
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
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
thanks! will do 🙂