MURMUR_HASH3_32
Descriptionβ
Calculate 32-bit murmur3 hash value
-Note: When calculating hash values, it is recommended to use xxhash_32
instead of murmur_hash3_32
γ
Syntaxβ
MURMUR_HASH3_32( <str> [ , <str> ... ] )
Parametersβ
parameter | description |
---|---|
<str> | The 32-bit murmur3 hash value to be calculated |
Return Valueβ
Returns the 32-bit murmur3 hash of the input stringγ
-When the parameter is NULL, it returns NULL
Examplesβ
select murmur_hash3_32(null), murmur_hash3_32("hello"), murmur_hash3_32("hello", "world");
+-----------------------+--------------------------+-----------------------------------+
| murmur_hash3_32(NULL) | murmur_hash3_32('hello') | murmur_hash3_32('hello', 'world') |
+-----------------------+--------------------------+-----------------------------------+
| NULL | 1321743225 | 984713481 |
+-----------------------+--------------------------+-----------------------------------+