uranusjr commented on code in PR #39426:
URL: https://github.com/apache/airflow/pull/39426#discussion_r1593759656
##########
airflow/utils/db.py:
##########
@@ -1888,12 +1914,144 @@ def get_query_count(query_stmt: Select, *, session:
Session) -> int:
return session.scalar(count_stmt)
+def get_query_exists(query_stmt: Select, *, session: Session) -> bool:
Review Comment:
I was following the naming of `get_query_count` (admittedly not a very good
one either). Using `check` instead makes sense.
--
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]