uranusjr commented on code in PR #32645:
URL: https://github.com/apache/airflow/pull/32645#discussion_r1266193593
##########
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:
Missed changing this (also the `all` call below should be removed
--
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]