SYSTEM$GET_ZEROCOPY_METADATA_AUTO_REFRESH_INTERVAL
functionnot supportedCore SQL functionsReturns the metadata auto-refresh interval of a Zero-Copy connector. The refresh interval is a property of the connector. It applies to every catalog-linked database that is mounted from the connector. It controls how often Snowflake checks the partner for updated table metadata, so that queries on the mounted tables reflect the partner’s latest committed changes. The data itself stays with the partner and isn’t copied. The interval is separate from the SYNC_INTERVAL_SECONDS property of a catalog-linked database, which controls how often Snowflake discovers new and removed schemas and tables. For that property, see ALTER DATABASE (zero-copy connector-linked).
Syntax
SYSTEM$GET_ZEROCOPY_METADATA_AUTO_REFRESH_INTERVAL('<connector_name>')
Parameters
| Name | Required | Description |
|---|---|---|
connector_name | required | The name of the Zero-Copy connector. Specify it as a string literal enclosed in single quotes. You can use a fully qualified name (<db>.<schema>.<connector>) or a partially qualified name. |
Returns
Returns a string with the interval, for example 30 seconds, 5 minutes, 1 hour, 4 hours, or 1 day.
Usage notes
- Snowflake sets the interval when the connector connects. The default depends on the partner:
- Partner | Default interval
- SAP® BDC | 30 seconds
- Salesforce | 30 seconds
- Workday | 4 hours
- Note
- Existing SAP® BDC Zero-Copy connectors might have a different interval. To see the interval of a connector, call this function.
- To change the interval, use SYSTEM$SET_ZEROCOPY_METADATA_AUTO_REFRESH_INTERVAL.
Access control requirements
A role used to execute this operation must have at least one privilege (USAGE, OPERATE, MODIFY, MONITOR, or OWNERSHIP) on the Zero-Copy connector. For instructions on creating a custom role with a specified set of privileges, see Creating custom roles. For general information about roles and privilege grants for performing SQL actions on securable objects, see Overview of Access Control.