Skip to main content
VeloDB Cloud 4.x is based on Doris 3.x. Versions in this section refer to Doris versions. See Version Mapping.

XXHASH_32

Description​

Calculate the 32-bit xxhash value of the input string

Syntax​

XXHASH_32( <str> [ , <str> ... ] )

Parameters​

parameterdescription
<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 |
+-----------------+--------------------+-----------------------------+