SYSTEM$GET_REFERENCED_OBJECT_ID_HASH

functionpartialNative apps, listings & sharing

docs.snowflake.com ↗

System functions

Returns the hash of the entity ID of the consumer object currently resolved by the reference. This function is useful for an app to determine whether the object bound to a reference has changed. The app can save the value and then compare the current value to the previously known value.

Syntax

supportedpartialnot supportednot scored

SYSTEM$GET_REFERENCED_OBJECT_ID_HASH('<reference_name>'[, '<alias>'])

Parameters

NameRequiredDescription
'reference_name'requiredThe name of the reference as specified in the manifest.yml file of the app.
'alias'optionalThe system-generated alias of the association. This argument is required for a multi-valued reference. To get the aliases of the associations for a reference, call SYSTEM$GET_ALL_REFERENCES.

Returns

Returns a VARCHAR value that contains the hexadecimal-encoded SHA-256 hash of the identifier of the consumer object.

Usage notes

Known gaps

Parts not fully supported, and recorded divergences from Snowflake.