Created
April 30, 2021 12:50
-
-
Save albinkjellin/ced714a1cb1201a4e67e3a3f330fba17 to your computer and use it in GitHub Desktop.
product.yml
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
table_name: product | |
samples: | |
table_limit: 50 | |
failed_limit: 50 | |
metrics: | |
- row_count | |
- missing_count | |
- missing_percentage | |
- values_count | |
- values_percentage | |
- valid_count | |
- valid_percentage | |
- invalid_count | |
- invalid_percentage | |
- min_length | |
- max_length | |
- avg_length | |
- min | |
- max | |
- avg | |
- sum | |
- variance | |
- stddev | |
- histogram | |
- uniqueness | |
tests: | |
- row_count > 0 | |
columns: | |
productid: | |
valid_format: uuid | |
tests: | |
- invalid_percentage == 0 | |
productcategory: | |
tests: | |
- missing_count < 10 | |
size: | |
valid_max: 95 | |
tests: | |
- invalid_percentage < 5 | |
sql_metrics: | |
- type: failed_rows | |
name: INVALID_PRICE | |
sql: | | |
select * from product | |
where purchaseprice > sellingprice |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment