Schemas:

ACCOUNT_USAGE

SEMANTIC_VIEW_IMPORTS view

This ACCOUNT_USAGE view displays a row for each import entry in a semantic view that uses the IMPORTS clause to compose with another semantic view.

Columns

Column nameData typeDescription
semantic_view_import_idNUMBERInternal, Snowflake-generated identifier for the import entry.
semantic_view_import_nameVARCHARName of the import entry (system-generated, format: SYS_IMPORT_<uuid>).
semantic_view_idNUMBERInternal, Snowflake-generated identifier for the semantic view that contains the import.
semantic_view_nameVARCHARName of the semantic view that contains the import.
semantic_view_schema_idNUMBERInternal, Snowflake-generated identifier for the schema of the semantic view.
semantic_view_schema_nameVARCHARSchema of the semantic view.
semantic_view_database_idNUMBERInternal, Snowflake-generated identifier for the database of the semantic view.
semantic_view_database_nameVARCHARDatabase of the semantic view.
imported_semantic_view_database_nameVARCHARDatabase of the imported semantic view.
imported_semantic_view_schema_nameVARCHARSchema of the imported semantic view.
imported_semantic_view_nameVARCHARName of the imported semantic view.
facts_selectionARRAYFacts selected by this import. NULL when the FACTS sub-clause is omitted.
dimensions_selectionARRAYDimensions selected by this import. NULL when the DIMENSIONS sub-clause is omitted.
metrics_selectionARRAYMetrics selected by this import. NULL when the METRICS sub-clause is omitted.
createdTIMESTAMP_LTZDate and time the import entry was created.
last_alteredTIMESTAMP_LTZDate and time the object was last altered by a DML, DDL, or background metadata operation.
deletedTIMESTAMP_LTZDate and time the import entry was deleted.

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 import entries for the semantic view COMPOSED_SALES in the database MY_DB:

SELECT * FROM SNOWFLAKE.ACCOUNT_USAGE.SEMANTIC_VIEW_IMPORTS
  WHERE semantic_view_name = 'COMPOSED_SALES'
    AND semantic_view_database_name = 'MY_DB';