System data metric functions¶
This topic is a reference for the system data metric functions (DMFs) that Snowflake provides to all accounts.
You can call these system DMFs to start measuring your data quality immediately.
About system DMFs¶
Snowflake provides system DMFs in the CORE schema of the shared SNOWFLAKE database. System DMFs are maintained by Snowflake; you cannot change the name or functionality of any system DMF.
Each system DMF enables you to measure a different data quality attribute. You can assign more than one system DMF to a table or view to allow for a more comprehensive data quality measurement to address your governance and compliance needs.
System DMFs¶
Currently, Snowflake supports these system DMFs to measure common metrics without having to define them:
Category |
System DMF |
Description |
---|---|---|
Accuracy |
Determine how many blank values are in a column. |
|
Determine what percentage of a column’s values are blank. |
||
Determine how many NULL values are in a column. |
||
Determine what percentage of a column’s values are NULL. |
||
Freshness |
Determine the freshness of a table’s data based on a timestamp column. |
|
Define custom freshness metrics. |
||
Statistics |
Determine the average value of a column. |
|
Determine the maximum value of a column. |
||
Determine the minimum value of a column. |
||
Determine the standard deviation value for a column. |
||
Uniqueness |
Determine whether values in a column match a Boolean expression. |
|
Determine the number of duplicate values in a column, including NULL values. |
||
Determine the number of unique, non-NULL values in a column. |
||
Volume |
Determine how many records are in the table or view. |
Access control requirements¶
For information about the access control requirements of working with system DMFs, see Grant the USAGE privilege on system DMFs.