Is it possible to use a partition mapping between ...
# ask-community
c
Is it possible to use a partition mapping between two assets which uses
non_argument_deps
? You'd usually indicate the mapping in the
ins
argument which can take an
AssetIn
class, which can specify a partition mapping. However,
non_argument_deps
seemingly only takes in
AssetKey
class, which cannot.
🤖 1
o
hi @Caleb Parnell Lampen! good question -- you can do something like
Copy code
@asset(ins={"upstream": AssetIn(dagster_type=Nothing, partition_mapping=...))
def my_asset():
    ...
basically a
Nothing
type indicates a data-only dependency, and so dagster will not expect an argument (
non_argument_deps
is basically shorthand for this)
c
Cool, thanks!