roykoand commented on code in PR #73461:
URL: https://github.com/apache/airflow/pull/73461#discussion_r4619432877


##########
airflow-core/src/airflow/models/serialized_dag.py:
##########
@@ -826,7 +826,7 @@ def latest_item_select_object(cls, dag_id):
                 .order_by(DagVersion.version_number.desc())
                 .limit(1)
             )
-            return select(cls).where(cls.id == latest_item_id)
+            return select(cls).where(cls.id == 
latest_item_id.scalar_subquery())

Review Comment:
   @kaxil great point. thank you!



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