←back to thread

140 points subset | 1 comments | | HN request time: 0.22s | source
Show context
Simon_O_Rourke ◴[] No.44376039[source]
I've had the privilege (?) of experiencing one in the wild only once. Was hashing a few columns to create a hash key for a dimensional table in snowflake and two wholy different rows clashed.
replies(1): >>44379193 #
1. mjuarez ◴[] No.44379193[source]
By default, Snowflake doesn't seem to use any crytographic hash algorithms, so that's not completely unexpected. Based on (1) this link, it uses a proprietary 64-bit hash, and has this tidbit: "Do not use HASH to create unique keys."

(1) https://docs.snowflake.com/en/sql-reference/functions/hash