SYSTEM$GET_ZEROCOPY_METADATA_AUTO_REFRESH_INTERVAL

functionnot supportedCore SQL functions

docs.snowflake.com ↗

System functions

Returns 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

NameRequiredDescription
connector_namerequiredThe 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

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.