- Categories:
SEMANTIC_ VIEW_ MATERIALIZATION_ REFRESH_ HISTORY¶
Returns the refresh history for a semantic view materialization, including the state, timing, and action taken for each refresh.
Syntax¶
Arguments¶
NAME => 'materialization_name'The name of the materialization to return history for.
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:
|
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. |
Usage notes¶
- Call this function using the
TABLE()keyword in the FROM clause. - You must use a role that has been granted SELECT on the semantic view.