Skip to content

Commit

Permalink
Add new check that dataset is not null
Browse files Browse the repository at this point in the history
  • Loading branch information
jmelot committed Aug 16, 2023
1 parent 4f3dba7 commit e05e07c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions linkage_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,11 @@
sql=f"select count(0) = 0 from {staging_dataset}.references where id is null or ref_id is null",
use_legacy_sql = False
),
BigQueryCheckOperator(
task_id="no_null_datasets",
sql=f"select count(0) = 0 from {staging_dataset}.sources where dataset is null",
use_legacy_sql=False
),
])

# We're done! Checks passed, so copy to production and post success to slack
Expand Down

0 comments on commit e05e07c

Please sign in to comment.