geoHeil
12/16/2022, 11:20 PMsandy
12/19/2022, 5:30 PMgeoHeil
12/19/2022, 9:17 PMdaniel
12/19/2022, 9:19 PMgeoHeil
12/19/2022, 9:19 PMdaniel
12/19/2022, 9:19 PMsandy
12/19/2022, 11:15 PMgeoHeil
12/20/2022, 7:56 AMsandy
12/20/2022, 4:53 PMgeoHeil
12/20/2022, 8:54 PMsandy
12/21/2022, 12:20 AMgeoHeil
12/21/2022, 7:27 AMsandy
12/21/2022, 5:55 PMgeoHeil
12/21/2022, 5:56 PMsandy
12/21/2022, 5:58 PM@asset(
partitions_def=DailyPartitionsDefinition(start_date="2020-01-01"),
ins={
"a": AssetIn(
partition_mapping=TimeWindowPartitionMapping(start_offset=-1, end_offset=-1)
)
},
)
def a(a):
...
geoHeil
12/21/2022, 5:59 PMsandy
12/21/2022, 6:00 PMgeoHeil
12/21/2022, 6:01 PMDailyPartitionsDefinition(start_date='2022-01-01', end_offset=1)
would the corresponding TimeWindowPartitionMapping
for each asset:
partition_mapping=TimeWindowPartitionMapping(start_offset=-1, end_offset=-1)
still look like this? In particular, I want to double check the end_offset
.sandy
12/24/2022, 1:57 AMgeoHeil
12/27/2022, 7:14 AMsandy
12/27/2022, 3:50 PMgeoHeil
12/27/2022, 8:39 PMsandy
12/27/2022, 9:10 PMgeoHeil
12/28/2022, 7:30 AMsandy
12/28/2022, 5:47 PMAssetIn
that corresponds to the self-dep.
in our next release (next Thursday), asset backfills will respect the ordering of self-partition-depsgeoHeil
12/28/2022, 6:05 PMsandy
12/28/2022, 6:21 PMgeoHeil
12/28/2022, 8:06 PMdef a_scd2(context, a: pyspark.sql.DataFrame)
`) makes my line of thought clearer to you - but perhaps you can tell me now how I am mis-thinking the handling of the self-references.sandy
12/29/2022, 8:56 PMfrom dagster import asset, DailyPartitionsDefinition, TimeWindowPartitionMapping, AssetIn, Nothing
@asset(partitions_def=DailyPartitionsDefinition(start_date="2020-01-01"))
def a():
...
@asset(
partitions_def=DailyPartitionsDefinition(start_date="2020-01-01"),
ins={
"a_scd2": AssetIn(
dagster_type=Nothing,
partition_mapping=TimeWindowPartitionMapping(start_offset=-1, end_offset=-1),
)
},
)
def a_scd2(a):
...
(there's actually a bug that causes the above to error currently, but it will get fixed in the next release)geoHeil
01/03/2023, 9:24 AM@op 'a_scd2' decorated function has parameter 'a_scd2' that is one of the input_defs of type 'Nothing' which should not be included since no data will be passed for it.
this the error you are talking about?sandy
01/10/2023, 4:45 PM