guan404ming commented on code in PR #60966:
URL: https://github.com/apache/airflow/pull/60966#discussion_r2812759887
##########
airflow-core/src/airflow/timetables/simple.py:
##########
@@ -235,31 +247,84 @@ def next_dagrun_info(
return None
+DEFAULT_PARTITION_MAPPER = IdentityMapper()
+
+
class PartitionedAssetTimetable(AssetTriggeredTimetable):
"""Asset-driven timetable that listens for partitioned assets."""
@property
def summary(self) -> str:
return "Partitioned Asset"
- def __init__(self, assets: SerializedAssetBase, partition_mapper:
PartitionMapper) -> None:
+ def __init__(
+ self,
+ *,
+ assets: SerializedAssetBase,
+ partition_mapper_mapping: dict[SerializedAssetBase, PartitionMapper] |
None = None,
Review Comment:
This is a difficult one. I think the partition_mapper_mapping makes sense
and reasonable but is kind of hard to understand at first glance.
`partition_mapper_config` sounds like a great option but open to any better
option!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]