rickychen-infinirc commented on code in PR #59918:
URL: https://github.com/apache/airflow/pull/59918#discussion_r2661017732
##########
airflow-core/src/airflow/utils/db_cleanup.py:
##########
@@ -183,17 +184,17 @@ def readable_config(self):
config_dict: dict[str, _TableConfig] = {x.orm_model.name: x for x in
sorted(config_list)}
-def _check_for_rows(*, query: Query, print_rows: bool = False) -> int:
- num_entities = query.count()
+def _check_for_rows(*, query: Select, print_rows: bool = False, session:
Session) -> int:
Review Comment:
Good point! Renamed `query` to `statement` in `_check_for_rows` and
`_do_delete` for consistency with SQLAlchemy 2.0 terminology. Thanks!
--
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]