SYSTEM$AUTO_REFRESH_STATUS
functionsupportedIceberg & external tablesReturns the automated refresh status for an externally managed Iceberg table. Note To return this refresh status for all applicable externally managed Apache Iceberg™ tables for which you have access privileges, run the SHOW ICEBERG TABLES command and see the auto_refresh_status column in the output.
Syntax
SYSTEM$AUTO_REFRESH_STATUS('<table_name>')
Parameters
| Name | Required | Description |
|---|---|---|
'table_name' | required | The name of the Iceberg table for which you want to retrieve the current automated refresh status. If using the fully qualified name, enclose the entire name in single quotes, including the database and schema. If the table name is case-sensitive or includes any special characters or spaces, you must use double quotes. Enclose the double quotes within the single quotes, for example, '"Table_Name"'. |
Returns
The function returns a JSON object containing the following name/value pairs: Where:
Usage notes
- Calling this function requires a role that has the OWNERSHIP privilege on the Iceberg table.
- For Delta-based tables, note the following: In the context of this function and automated refresh in Snowflake, the term “snapshot” refers to a Delta commit.
- The function doesn’t return a value for lastSnapshotTime.
- The function also applies to tables in catalog-linked databases created from a Zero-Copy connector. For a Zero-Copy connector that exposes views instead of tables, such as Salesforce, use SYSTEM$CATALOG_LINK_STATUS to check the status of the database.