surrogate_key_str(string)
Creates a hashed value of multiple field <string>. Use CONCAT to create <string> to include multiple fields.
CREATE OR REPLACE FUNCTION `justfunctions.eu.surrogate_key_str`(`string` STRING)
RETURNS STRING AS (CAST(FARM_FINGERPRINT(string) AS STRING))
OPTIONS ( description = '''Creates a hashed value of multiple field <string>. Use CONCAT to create <string> to include multiple fields.''')
Example
SELECT `justfunctions.eu.surrogate_key_str`("python")
2065202487608477923