SYSTEM$CKE_HASH_FUNCTION

functionsupportedIntegrations, network & secrets

docs.snowflake.com ↗

System functions

Analyzes Cortex Knowledge Extensions (CKE) usage by mapping hashedDocumentIds back to your original document primary keys in the Cortex Search Service. This is required because Snowflake shares only hashed IDs for privacy. This function returns the hashed document identifier, which maps to the HASHED_DOC_ID in the LISTING_ACCESS_HISTORY view.

Syntax

SYSTEM$CKE_HASH_FUNCTION( '<hash_version>', '<encoded_primary_key>' )

Parameters

NameRequiredDescription
hash_versionrequiredThe version of the hash function used, provided in the LISTING_ACCESS_HISTORY view view.
encoded_primary_keyrequiredThe encoded primary keys returned when you call the SYSTEM$ENCODE_CKE_PRIMARY_KEY function.

Returns

Returns the hashed encoded primary keys specified by the hash version.

See also

Referenced by