- Schemas:
SEMANTIC_ DIMENSIONS view¶
This ACCOUNT_USAGE view displays a row for each dimension defined in a semantic view.
Columns¶
| Column name | Data type | Description |
|---|---|---|
semantic_dimension_id | NUMBER | ID of the dimension in the semantic view. |
semantic_dimension_name | VARCHAR | Name of the dimension in the semantic view. |
semantic_table_id | NUMBER | ID of the semantic table the dimension belongs to. |
semantic_table_name | VARCHAR | Name of the semantic table the dimension belongs to. |
semantic_view_id | NUMBER | ID of the semantic view. |
semantic_view_name | VARCHAR | Name of the semantic view. |
semantic_view_schema_id | NUMBER | ID of the schema to which the semantic view belongs. |
semantic_view_schema_name | VARCHAR | Schema to which the semantic view belongs. |
semantic_view_database_id | NUMBER | ID of the database to which the semantic view belongs. |
semantic_view_database_name | VARCHAR | Database to which the semantic view belongs. |
data_type | VARCHAR | Data type of the dimension expression. |
expression | VARCHAR | The SQL expression used to calculate the dimension. |
synonyms | ARRAY(VARCHAR) | List of the synonyms for the dimension. |
created | TIMESTAMP_LTZ | Creation time of the dimension. |
last_altered | TIMESTAMP_LTZ | Date and time the object was last altered by a DML, DDL, or background metadata operation. See |
deleted | TIMESTAMP_LTZ | Date and time when the dimension was dropped. |
comment | VARCHAR | Description of the dimension. |
cortex_search_service_database | VARCHAR | Name of the database containing the Cortex Search Service that the dimension uses. |
cortex_search_service_schema | VARCHAR | Name of the schema containing the Cortex Search Service that the dimension uses. |
cortex_search_service | VARCHAR | Name of the Cortex Search Service that the dimension uses. |
cortex_search_service_column | VARCHAR | Name of the column that the Cortex Search Service allows you to search on, if the dimension uses a Cortex Search Service. |
Usage notes¶
- Latency for the view can be up to 120 minutes (2 hours).
-
The LAST_ALTERED column is updated when the following operations are performed on an object:
- DDL operations.
- DML operations (for tables only). This column is updated even when no rows are affected by the DML statement.
- Background maintenance operations on metadata performed by Snowflake.
Examples¶
Retrieve the list of all dimensions for the semantic view O_TPCH_SEMANTIC_VIEW in the database MY_DB: