SYSTEM$SET_ZEROCOPY_METADATA_AUTO_REFRESH_INTERVAL

functionnot supportedCore SQL functions

docs.snowflake.com ↗

System functions

Sets 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$SET_ZEROCOPY_METADATA_AUTO_REFRESH_INTERVAL('<connector_name>', '<refresh_interval>')

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.
refresh_intervalrequiredThe interval, as a string literal. Specify a whole number followed by a unit, with an optional space between them: Seconds: s, second, or seconds Minutes: m, minute, or minutes Hours: h, hour, or hours Days: d, day, or days For example, 30s, 5m, 10 minutes, 1h, 2 hours, or 1d. Combined units (for example, 1h30m) aren’t supported. The interval must be between 30 seconds and 1 day.

Returns

Returns a string that confirms the change.

Usage notes

Access control requirements

A role used to execute this operation must have the MODIFY privilege 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.