phanikumv commented on code in PR #32645:
URL: https://github.com/apache/airflow/pull/32645#discussion_r1269759624
##########
airflow/models/serialized_dag.py:
##########
@@ -275,7 +272,7 @@ def has_dag(cls, dag_id: str, session: Session =
NEW_SESSION) -> bool:
:param dag_id: the DAG to check
:param session: ORM Session
"""
- return session.query(literal(True)).filter(cls.dag_id ==
dag_id).first() is not None
+ return session.scalars(select(literal(True)).where(cls.dag_id ==
dag_id)).first() is not None
Review Comment:
fixed it
--
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]