Schema:

LOCAL

DATA_QUALITY_MONITORING_EXPECTATION_STATUS view

This view displays a row for every time a data metric function (DMF) with an expectation was run in your account.

Columns

Column nameData typeDescription
scheduled_timeTIMESTAMP_LTZThe time the DMF is scheduled to run based on the schedule that you set for the table or view.
change_commit_timeTIMESTAMP_LTZ

The time the DMF trigger operation occurred, or None if the DMF is not scheduled to run by a trigger operation.

For information about the trigger operation, see Adjust the schedule for DMFs.

measurement_timeTIMESTAMP_LTZThe time at which the metric was evaluated.
table_idNUMBERInternal/system-generated identifier of the table that is associated with the DMF.
table_nameVARCHARName of the table that is associated with the DMF.
table_schemaVARCHARName of the schema name that contains the table that is associated with the DMF.
table_databaseVARCHARName of the database that contains the table that is associated with the DMF.
metric_idNUMBERInternal/system-generated identifier of the DMF.
metric_nameVARCHARName of the DMF.
metric_schemaVARCHARName of the schema that contains the DMF.
metric_databaseVARCHARName of the database that contains the DMF.
metric_return_typeVARCHARReturn type of the DMF.
arguments_idsARRAYArray of the identifiers of the DMF arguments. Array elements are in the same order as the arguments.
arguments_typesARRAY

Array of the domain/type of each argument. Array elements are in the same order as the arguments.

Currently only supports COLUMN type arguments.

arguments_namesARRAY

Array of the names of the DMF arguments. For column arguments, each element is the name of a column. Array elements are in the same order as the arguments.

reference_idVARCHARThe ID to uniquely identify the metric entity reference, known as the association ID.
valueVARIANTThe result of the DMF evaluation.
expectation_nameVARCHARName that was given to the expectation when it was added to the association between the DMF and the object.
expectation_idVARCHARSystem-generated identifier.
expectation_expressionVARCHARBoolean expression of the expectation. See Defining what meets the expectation.
expectation_violatedBOOLEAN

If TRUE, the expectation was violated. An expectation is violated when the expectation_expression evaluates to FALSE.

A NULL value indicates the evaluation of the expectation failed.

Access control requirements

The role used to query the view must be granted one of the following application roles:

  • SNOWFLAKE.DATA_QUALITY_MONITORING_VIEWER
  • SNOWFLAKE.DATA_QUALITY_MONITORING_ADMIN