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