Kind of confused about asset dependency. When I ma...
# ask-community
c
Kind of confused about asset dependency. When I make a downstream asset dependent on an upstream asset, what exactly is being made available to the downstream asset. The docs only say "the contents of
upstream_asset
are provided to the function that computes the contents of `downstream_asset`"
Is it only the output of the upstream asset? Can I access the upstream asset key and partition key somehow?
j
The downstream asset will get the output of the upstream asset. if your assets are partitioned, you’ll get the corresponding partition of the upstream asset. You can probably get the full asset key of the upstream asset via the
context
in the downstream asset, but i’d need to reference the source code to get the exact argument you’re looking for