dstandish commented on code in PR #23461:
URL: https://github.com/apache/airflow/pull/23461#discussion_r865143685
##########
airflow/utils/db.py:
##########
@@ -1237,11 +1237,14 @@ class BadReferenceConfig:
if "run_id" in source_table.columns:
continue
+ log.info("checking for bad references in table %s", source_table.name)
Review Comment:
```suggestion
log.info("Checking for bad references in table %s",
source_table.name)
```
##########
airflow/utils/db.py:
##########
@@ -1237,11 +1237,14 @@ class BadReferenceConfig:
if "run_id" in source_table.columns:
continue
+ log.info("checking for bad references in table %s", source_table.name)
+
bad_rows_subquery = bad_ref_cfg.exists_func(session, source_table,
**exists_func_kwargs)
select_list = [x.label(x.name) for x in source_table.c]
invalid_rows_query =
session.query(*select_list).filter(~bad_rows_subquery.exists())
invalid_row_count = invalid_rows_query.count()
if invalid_row_count <= 0:
+ log.info("no bad references in table %s", source_table.name)
Review Comment:
```suggestion
log.info("No bad references in table %s", source_table.name)
```
--
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]