Skip to content

Commit

Permalink
fix(assertions) aligned graphql AssertionType definition with the Ass…
Browse files Browse the repository at this point in the history
…ertionType defined in metadata-models (datahub-project#10534)
  • Loading branch information
jayacryl authored and sleeperdeep committed Jun 25, 2024
1 parent e459f1f commit 37ecba4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
25 changes: 24 additions & 1 deletion datahub-graphql-core/src/main/resources/entity.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7766,10 +7766,33 @@ enum DatasetAssertionScope {
}

"""
The top-level assertion type. Currently single Dataset assertions are the only type supported.
The top-level assertion type.
"""
enum AssertionType {
"""
A single-dataset assertion.
"""
DATASET
"""
An assertion which indicates when a particular operation should occur to an asset.
"""
FRESHNESS
"""
An assertion which indicates how much data should be available for a particular asset.
"""
VOLUME
"""
A raw SQL-statement based assertion.
"""
SQL
"""
A structured assertion targeting a specific column or field of the Dataset.
"""
FIELD
"""
A schema or structural assertion.
"""
DATA_SCHEMA
}

"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ record AssertionInfo includes CustomProperties, ExternalReference {
*/
SQL

/**
* A structured assertion targeting a specific column or field of the Dataset.
*/
FIELD

/**
* A schema or structural assertion.
*
Expand Down

0 comments on commit 37ecba4

Please sign in to comment.