surrogate_key(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`(`string` STRING)
RETURNS INT64 AS (CAST(FARM_FINGERPRINT(string) AS INT64))
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`("python")
2065202487608477923