-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an example for the target data validator.
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
detailedErrors: true | ||
# We might have a large number of errors so just show the first 5 | ||
numErrorsToReport: 5 | ||
|
||
email: | ||
smtpHost: smtp.example.com | ||
subject: Data Validation Summary | ||
from: [email protected] | ||
to: | ||
- [email protected] | ||
|
||
tables: | ||
- db: uk_data | ||
table: adult | ||
# Columns that taken together uniquely specifies each row (think of groupBy) | ||
keyColumns: | ||
- CompanyNumber | ||
- EmployerId | ||
- CompanyLinkToGPGInfo | ||
- ResponsiblePerson | ||
# Used to filter | ||
condition: MaleBonusPercent >= FemaleBonusPercent | ||
checks: | ||
# We expect at least 500 records | ||
- type: rowCount | ||
minNumRows: 500 | ||
# We don't expect more than 1% not companies in the dataset. | ||
- type: nullCheck | ||
column: CompanyNumber | ||
threshold: 0.01 |