- Schema:
For guidance on query performance when using organization-wide usage views, see Performance (Organization Usage).
SEMANTIC_ TABLES 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 table reference defined in a semantic view.
- See also:
Columns¶
Organization-level columns
| Column Name | Data Type | Description |
|---|---|---|
| ORGANIZATION_NAME | VARCHAR | Name of the organization. |
| ACCOUNT_LOCATOR | VARCHAR | System-generated identifier for the account. |
| ACCOUNT_NAME | VARCHAR | User-defined identifier for the account. |
Additional columns
| Column Name | Data Type | Description |
|---|---|---|
| SEMANTIC_TABLE_ID | NUMBER | Internal, Snowflake-generated identifier for the table in the semantic view. |
| SEMANTIC_TABLE_NAME | VARCHAR | Name of the table in the semantic view. |
| SEMANTIC_VIEW_ID | NUMBER | Internal, Snowflake-generated identifier for the semantic view in which the table is defined. |
| SEMANTIC_VIEW_NAME | VARCHAR | Name of the semantic view in which the table is defined. |
| SEMANTIC_VIEW_SCHEMA_ID | NUMBER | Internal, Snowflake-generated identifier for the schema that the semantic view belongs to. |
| SEMANTIC_VIEW_SCHEMA_NAME | VARCHAR | Schema that the semantic view belongs to. |
| SEMANTIC_VIEW_DATABASE_ID | NUMBER | Internal, Snowflake-generated identifier for the database that the semantic view belongs to. |
| SEMANTIC_VIEW_DATABASE_NAME | VARCHAR | Database that the semantic view belongs to. |
| BASE_TABLE_NAME | VARCHAR | Name of the base table. |
| BASE_TABLE_SCHEMA_NAME | VARCHAR | Schema that the base table belongs to. |
| BASE_TABLE_DATABASE_NAME | VARCHAR | Database that the base table belongs to. |
| PRIMARY_KEYS | ARRAY | List of the primary key columns of the table. |
| UNIQUE_KEYS | ARRAY | List of the unique key column groups of the table. |
| SYNONYMS | ARRAY | List of the synonyms for the table. |
| DISTINCT_RANGES | ARRAY | List of distinct range specifications for the table. |
| CREATED | TIMESTAMP_LTZ | Creation time of the table. |
| LAST_ALTERED | TIMESTAMP_LTZ | Date and time the object was last altered by a DDL or background metadata operation. |
| DELETED | TIMESTAMP_LTZ | Date and time when the table was dropped. |
| COMMENT | VARCHAR | Comment for the table. |
| DEFINITION | VARCHAR | The SQL query that defines the logical table, if defined as a SQL query rather than a physical table. NULL if the table uses a physical base table. |
Usage notes¶
- Latency for the view may be up to 24 hours.