Schema:

ORGANIZATION_USAGE

For guidance on query performance when using organization-wide usage views, see Performance (Organization Usage).

SEMANTIC_RELATIONSHIPS view

Important

This view is only available in the organization account. For more information, see Premium views in the organization account.

Organization Usage performance

When you query a specific view in the SNOWFLAKE.ORGANIZATION_USAGE schema, follow the organization-wide guidance in Performance (Organization Usage): bound every scan on history views, list columns explicitly, and use the time filter column table plus worked SQL and anti-patterns there.

This Organization Usage view displays a row for each relationship defined in a semantic view.

See also:

SEMANTIC_RELATIONSHIPS view

Columns

Organization-level columns

Column NameData TypeDescription
ORGANIZATION_NAMEVARCHARName of the organization.
ACCOUNT_LOCATORVARCHARSystem-generated identifier for the account.
ACCOUNT_NAMEVARCHARUser-defined identifier for the account.

Additional columns

Column NameData TypeDescription
SEMANTIC_RELATIONSHIP_IDNUMBERInternal, Snowflake-generated identifier for the relationship in the semantic view.
SEMANTIC_RELATIONSHIP_NAMEVARCHARName of the relationship in the semantic view.
SEMANTIC_VIEW_IDNUMBERInternal, Snowflake-generated identifier for the semantic view in which the relationship is defined.
SEMANTIC_VIEW_NAMEVARCHARName of the semantic view in which the relationship is defined.
SEMANTIC_VIEW_SCHEMA_IDNUMBERInternal, Snowflake-generated identifier for the schema that the semantic view belongs to.
SEMANTIC_VIEW_SCHEMA_NAMEVARCHARSchema that the semantic view belongs to.
SEMANTIC_VIEW_DATABASE_IDNUMBERInternal, Snowflake-generated identifier for the database that the semantic view belongs to.
SEMANTIC_VIEW_DATABASE_NAMEVARCHARDatabase that the semantic view belongs to.
SEMANTIC_TABLE_IDNUMBERInternal, Snowflake-generated identifier for the logical table being referenced.
SEMANTIC_TABLE_NAMEVARCHARName of the logical table referencing the other table.
FOREIGN_KEYSARRAYList of the names of the columns referring to the columns of the other table.
REF_SEMANTIC_TABLE_IDNUMBERInternal, Snowflake-generated identifier for the logical table referencing the other table.
REF_SEMANTIC_TABLE_NAMEVARCHARName of the logical table being referenced.
REF_KEYSARRAYList of the names of the columns being referenced.
CREATEDTIMESTAMP_LTZCreation time of the relationship.
LAST_ALTEREDTIMESTAMP_LTZDate and time the object was last altered by a DDL or background metadata operation.
DELETEDTIMESTAMP_LTZDate and time when the relationship was dropped.

Usage notes

  • Latency for the view may be up to 24 hours.