phanikumv commented on code in PR #32645:
URL: https://github.com/apache/airflow/pull/32645#discussion_r1268973453


##########
airflow/models/trigger.py:
##########
@@ -97,15 +97,15 @@ def bulk_fetch(cls, ids: Iterable[int], session: Session = 
NEW_SESSION) -> dict[
         Fetches all the Triggers by ID and returns a dict mapping
         ID -> Trigger instance.
         """
-        query = (
-            session.query(cls)
+        query = session.scalars(
+            select(cls)
             .filter(cls.id.in_(ids))

Review Comment:
   fixed



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