SEMANTIC_VIEW_MATERIALIZATION_REFRESH_HISTORY

functionsupportedAI & ML

docs.snowflake.com ↗

Table functions

Returns the refresh history for a semantic view materialization, including the state, timing, and action taken for each refresh.

Syntax

SEMANTIC_VIEW_MATERIALIZATION_REFRESH_HISTORY(
  NAME => '<materialization_name>'
)

Parameters

NameRequiredDescription
NAME => 'materialization_name'requiredThe name of the materialization to return history for.

Usage notes

Output

The function returns a table with the following columns: Column | Data type | Description name | TEXT | Name of the materialization. schema_name | TEXT | Name of the schema that contains the semantic view. database_name | TEXT | Name of the database that contains the semantic view. state | TEXT | State of the refresh: ACTIVE: The materialization is operational and eligible for query rewrite. SUSPENDED: The materialization is suspended due to a refresh failure. state_message | TEXT | Error or status message from the refresh. refresh_start_time | TIMESTAMP_LTZ | Time when the refresh started. refresh_end_time | TIMESTAMP_LTZ | Time when the refresh completed. warehouse | TEXT | Warehouse used for the refresh. refresh_action | TEXT | Action taken during the refresh: INITIALIZE, REINITIALIZE, REFRESH, or NO_DATA.

See also