uranusjr commented on code in PR #32790:
URL: https://github.com/apache/airflow/pull/32790#discussion_r1273020036


##########
airflow/utils/db.py:
##########
@@ -1887,3 +1902,14 @@ def get_query_count(query_stmt: Select, session: 
Session) -> int:
     """
     count_stmt = 
select(func.count()).select_from(query_stmt.order_by(None).subquery())
     return session.scalar(count_stmt)
+
+
+def exists_query(*where: ClauseElement, session: Session) -> bool:

Review Comment:
   Can’t do this because `where` is already a star args. Bare `*` is 
(syntactically) a special case of `*name` and you can only have one star 
argument in the argument list.



##########
airflow/utils/db.py:
##########
@@ -1887,3 +1902,14 @@ def get_query_count(query_stmt: Select, session: 
Session) -> int:
     """
     count_stmt = 
select(func.count()).select_from(query_stmt.order_by(None).subquery())
     return session.scalar(count_stmt)
+
+
+def exists_query(*where: ClauseElement, session: Session) -> bool:

Review Comment:
   Can’t do this because `where` is already a star args. Bare `*` is 
(syntactically) a special case of `*name` and you can only have one star 
argument in the argument list.



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