Hi Team, I have a partitioned asset that depends ...
# ask-community
s
Hi Team, I have a partitioned asset that depends on a not partitioned static asset, but Dagster complains about upstream asset is not partitioned, which PartitionMapping should I use to map the downstream partitioned asset to not partitioned upstream asset? Thanks!
s
hey Sean - what complaint are you running into? I just tried out
Copy code
from dagster import asset, StaticPartitionsDefinition


@asset
def asset1():
    ...


@asset(partitions_def=StaticPartitionsDefinition(["a", "b"]))
def asset2(asset1):
    ...
and it worked OK
s
Sorry I’m not using static partition, here is my code
Copy code
@asset
def asset1():
    ...

@asset(partition_def=DailyPartitionsDefinition(start_date="2022-01-01"))
def asset2(asset1):
    ...
It is giving me
Error occurred while loading input "asset1" of step "asset2"
and
The input does not correspond to a partitioned asset
error
s
hmm, that worked fine for me too. what version are you on?
s
I’m on 1.1.13, it might be another case where I need to update version I think