SEMANTIC_METRICS view

This Information Schema view displays a row for each metric in a semantic view in the specified (or current) database.

See also:

SEMANTIC_METRICS view (Account Usage)

Columns

Column nameData typeDescription
semantic_view_catalogVARCHARDatabase to which the semantic view belongs.
semantic_view_schemaVARCHARSchema to which the semantic view belongs.
semantic_view_nameVARCHARName of the semantic view.
table_nameVARCHARName of the semantic table the metric belongs to.
nameVARCHARName of the metric.
data_typeVARCHARData type of the metric expression.
expressionVARCHARThe SQL expression used to calculate the metric.
synonymsARRAY(VARCHAR)List of the synonyms for the metric.
commentVARCHARDescription of the metric.

Access control requirements

Private metrics are included only if you are using a role that has been granted the REFERENCES or OWNERSHIP privilege on the semantic view.

Otherwise, the view lists only the public metrics.