Categories:

System functions (System Information)

SYSTEM$GET_ZEROCOPY_METADATA_AUTO_REFRESH_INTERVAL

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>')

Arguments

connector_name

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:
PartnerDefault interval
SAP® BDC30 seconds
Salesforce30 seconds
Workday4 hours

Note

Existing SAP® BDC Zero-Copy connectors might have a different interval. To see the interval of a connector, call this function.

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.

Examples

Get the interval of a connector:

SELECT SYSTEM$GET_ZEROCOPY_METADATA_AUTO_REFRESH_INTERVAL('my_db.my_schema.my_workday_connector');
4 hours