SYSTEM$CKE_HASH_FUNCTION
functionsupportedIntegrations, network & secretsAnalyzes 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
| Name | Required | Description |
|---|---|---|
hash_version | required | The version of the hash function used, provided in the LISTING_ACCESS_HISTORY view view. |
encoded_primary_key | required | The 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.