-
Notifications
You must be signed in to change notification settings - Fork 156
Added validation configuration for EPA_airqualityindex #2147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
rohitkumarbhagat
merged 14 commits into
datacommonsorg:master
from
shourya116:added_goldens
Sep 9, 2026
+30
−1
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
85b8052
Added Goldens
shourya116 5a48dfc
Merge branch 'master' into added_goldens
shourya116 156aa85
Merge branch 'master' into added_goldens
shourya116 00d252d
Merge branch 'master' into added_goldens
shourya116 18a0d9d
Removed Goldens
shourya116 a820d32
updated sytax
shourya116 2154483
added node_mcf
shourya116 84bf025
Add EPA_AQI.mcf and update node_mcf in manifest.json
shourya116 7f9b6c9
Add name to EPA_AQI.mcf and date validations to validation_config.json
shourya116 0b20f39
Added logic for dynamic date freshness
shourya116 20f3877
optimize the query
shourya116 2d6667b
Merge branch 'master' into added_goldens
shourya116 b927fc7
Removed node_mcf
shourya116 bef8936
Merge branch 'master' into added_goldens
shourya116 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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,28 @@ | ||
| { | ||
| "schema_version": "1.0", | ||
| "rules": [ | ||
| { | ||
| "rule_id": "check_deleted_records_percent", | ||
| "description": "Strictly enforce historical deletion average threshold of 0.1%", | ||
| "validator": "DELETED_RECORDS_PERCENT", | ||
| "params": { | ||
| "threshold": 0.1 | ||
|
abhishekjaisw marked this conversation as resolved.
|
||
| } | ||
| }, | ||
| { | ||
| "rule_id": "check_max_date_consistent", | ||
| "description": "Checks if the MaxDate is the same for all StatVars.", | ||
| "validator": "MAX_DATE_CONSISTENT", | ||
| "params": {} | ||
| }, | ||
| { | ||
| "rule_id": "check_max_date_freshness", | ||
| "description": "Verifies that the dataset's maximum observation date meets freshness requirements (within 1 year of current year)", | ||
| "validator": "SQL_VALIDATOR", | ||
| "params": { | ||
| "query": "SELECT MAX(CAST(LEFT(CAST(MaxDate AS VARCHAR), 4) AS INT)) AS max_year FROM stats", | ||
| "condition": "max_year >= (EXTRACT(YEAR FROM CURRENT_DATE) - 1)" | ||
| } | ||
| } | ||
|
shourya116 marked this conversation as resolved.
|
||
| ] | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.