uranusjr commented on code in PR #67537:
URL: https://github.com/apache/airflow/pull/67537#discussion_r3401533198


##########
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:
   Is _deduplicate_ the right word here? I would associate this to `group by` 
or similar. I think what this does is more like simle filtering?



-- 
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]

Reply via email to