diff --git a/datahub-graphql-core/src/main/resources/entity.graphql b/datahub-graphql-core/src/main/resources/entity.graphql index 1f2642567b49e..2315d6f8767d9 100644 --- a/datahub-graphql-core/src/main/resources/entity.graphql +++ b/datahub-graphql-core/src/main/resources/entity.graphql @@ -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 } """ diff --git a/metadata-models/src/main/pegasus/com/linkedin/assertion/AssertionInfo.pdl b/metadata-models/src/main/pegasus/com/linkedin/assertion/AssertionInfo.pdl index e161270145a88..5b60aa18e87da 100644 --- a/metadata-models/src/main/pegasus/com/linkedin/assertion/AssertionInfo.pdl +++ b/metadata-models/src/main/pegasus/com/linkedin/assertion/AssertionInfo.pdl @@ -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. *