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

Yang

12/19/2022, 4:41 PM
Hello, I have a question about partitions. How do I make a custom partition definition where a downstream asset needs 2 partitioned inputs. Eg. downstream is a partitioned asset for 2021 and required upstream asset for 2021 and 2020
👀 1
bump
m

Matt Clarke

12/19/2022, 10:24 PM
I don’t think you’d want a custom partition. You can use a TimeWindowPartitionMapping to achieve this. https://docs.dagster.io/_apidocs/partitions#dagster.TimeWindowPartitionMapping You can search for “trailing window” in the slack channel to find a few relevant examples of people working through this issue
y

Yang

12/19/2022, 10:49 PM
oh ok!
3 Views