SYSTEM$EVALUATE_DATA_QUALITY_EXPECTATIONS_PERSIST_RESULT
functionsupportedGovernance (policies, tags, data quality)Enterprise+Evaluates data quality expectations for associations between data metric functions (DMFs) and a table and persists the results to the SNOWFLAKE.LOCAL.DATA_QUALITY_MONITORING_RESULTS_RAW event table so that ad-hoc quality checks appear in data quality history. This stored procedure behaves like SYSTEM$EVALUATE_DATA_QUALITY_EXPECTATIONS but additionally writes the evaluation results to the SNOWFLAKE.LOCAL.DATA_QUALITY_MONITORING_RESULTS_RAW event table. Data Quality Monitoring requires Enterprise Edition. To inquire about upgrading, please contact Snowflake Support.
Syntax
supportedpartialnot supportednot scored
CALL SYSTEM$EVALUATE_DATA_QUALITY_EXPECTATIONS_PERSIST_RESULT(
'<object>'
[ , <skip_suspended_dmf> ]
)
Parameters
| Name | Required | Description |
|---|---|---|
'object' | required | Name of the table or view that has at least one DMF with one or more expectations. Must be fully qualified. |
skip_suspended_dmf | required | A BOOLEAN value that specifies whether to skip suspended DMFs. If set to TRUE, the procedure doesn’t return expectations that are defined for associations between the object and suspended DMFs. A suspended DMF doesn’t run on the object’s specified schedule. Default: FALSE |
Returns
Returns a table with the following columns:
Access control privileges
A role used to execute this operation must have the following privileges at a minimum: Privilege | Object | Notes SELECT | Table or view | USAGE | Data metric function (DMF) | Operating on an object in a schema requires at least one privilege on the parent database and at least one privilege on the parent schema. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.
Example
Evaluate the expectations for the associations between DMFs and table t1, and persist the results to the event table: Evaluate with suspended DMFs skipped:
See also
SYSTEM$EVALUATE_DATA_QUALITY_EXPECTATIONS