Lee-W commented on code in PR #67537:
URL: https://github.com/apache/airflow/pull/67537#discussion_r3401798144
##########
airflow-core/src/airflow/models/backfill.py:
##########
@@ -246,8 +246,14 @@ def _get_latest_dag_run_row_query(*, dag_id: str, info:
DagRunInfo):
from airflow.models import DagRun
stmt = select(DagRun).where(DagRun.dag_id == dag_id)
- if info.partition_key is not None:
- stmt = stmt.where(DagRun.partition_key == info.partition_key)
+ if info.partition_date is not None:
+ # Deduplicate partitioned runs on partition_date (the UTC instant of
the partition
Review Comment:
"deduplicate" was for the problem this change tried to solve. But from the
function's perspective, it's just filtering by `partition_date`. Rephrased.
Thanks!
--
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]